Skip to content

Commit

Permalink
use lambda as default
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jun 22, 2023
1 parent 3a8a8d5 commit dfc0d5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Pressable/GenericPressable/PropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const pressablePropTypes = {
};

const defaultProps = {
onPress: undefined,
onPress: () => {},
keyboardShortcut: undefined,
shouldUseHapticsOnPress: false,
shouldUseHapticsOnLongPress: false,
Expand Down
1 change: 0 additions & 1 deletion src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ function ReportActionItem(props) {
ref={popoverAnchorRef}
onPressIn={() => props.isSmallScreenWidth && DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()}
onPressOut={() => ControlSelection.unblock()}
onPress={() => {}}
onSecondaryInteraction={showPopover}
preventDefaultContextMenu={!props.draftMessage && !hasErrors}
withoutFocusOnSecondaryInteraction
Expand Down

0 comments on commit dfc0d5f

Please sign in to comment.