Skip to content

Commit

Permalink
Merge pull request #30397 from ikevin127/fix/30373
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam authored Oct 25, 2023
2 parents dee3f78 + bbc2f2d commit 1ec799b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
12 changes: 1 addition & 11 deletions src/pages/iou/ReceiptSelector/NavigationAwareCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,4 @@ NavigationAwareCamera.propTypes = propTypes;
NavigationAwareCamera.displayName = 'NavigationAwareCamera';
NavigationAwareCamera.defaultProps = defaultProps;

const NavigationAwareCameraWithRef = React.forwardRef((props, ref) => (
<NavigationAwareCamera
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
forwardedRef={ref}
/>
));

NavigationAwareCameraWithRef.displayName = 'NavigationAwareCameraWithRef';

export default NavigationAwareCameraWithRef;
export default NavigationAwareCamera;
12 changes: 1 addition & 11 deletions src/pages/iou/ReceiptSelector/NavigationAwareCamera.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,4 @@ const NavigationAwareCamera = React.forwardRef(({cameraTabIndex, isInTabNavigato
NavigationAwareCamera.propTypes = propTypes;
NavigationAwareCamera.displayName = 'NavigationAwareCamera';

const NavigationAwareCameraWithRef = React.forwardRef((props, ref) => (
<NavigationAwareCamera
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
forwardedRef={ref}
/>
));

NavigationAwareCameraWithRef.displayName = 'NavigationAwareCameraWithRef';

export default NavigationAwareCameraWithRef;
export default NavigationAwareCamera;

0 comments on commit 1ec799b

Please sign in to comment.