Skip to content

Commit

Permalink
Merge pull request #18929 from aimane-chnaif/fix/proptype-warning
Browse files Browse the repository at this point in the history
[No QA] fix propType warning, make prettier happy
  • Loading branch information
amyevans authored May 14, 2023
2 parents 2e73562 + b715025 commit 6c10bb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class AttachmentModal extends PureComponent {
backgroundColor={themeColors.componentBG}
onModalShow={() => {
this.props.onModalShow();
this.setState({shouldLoadAttachment: true})
this.setState({shouldLoadAttachment: true});
}}
onModalHide={(e) => {
this.props.onModalHide(e);
Expand Down
10 changes: 5 additions & 5 deletions src/components/Pressable/PressableWithFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ const PressableWithFeedback = forwardRef((props, ref) => {
>
{(state) => (
<OpacityView
shouldDim={!disabled && (state.pressed || state.hovered)}
shouldDim={Boolean(!disabled && (state.pressed || state.hovered))}
dimmingValue={state.pressed ? props.pressDimmingValue : props.hoverDimmingValue}
style={[
StyleUtils.parseStyleFromFunction(props.style, state),
!disabled && state.pressed && StyleUtils.parseStyleFromFunction(props.pressStyle, state),
!disabled && state.hovered && StyleUtils.parseStyleAsArray(props.hoverStyle, state),
state.focused && StyleUtils.parseStyleAsArray(props.focusStyle, state),
...StyleUtils.parseStyleFromFunction(props.style, state),
...(!disabled && state.pressed ? StyleUtils.parseStyleFromFunction(props.pressStyle, state) : []),
...(!disabled && state.hovered ? StyleUtils.parseStyleAsArray(props.hoverStyle, state) : []),
...(state.focused ? StyleUtils.parseStyleAsArray(props.focusStyle, state) : []),
]}
>
{props.children}
Expand Down

0 comments on commit 6c10bb2

Please sign in to comment.