Skip to content

Commit

Permalink
fix missing header
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Dec 11, 2023
1 parent bc77287 commit fa76248
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/pages/iou/request/step/IOURequestStepScan/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import useThemeStyles from '@styles/useThemeStyles';
import * as IOU from '@userActions/IOU';
import CONST from '@src/CONST';
import ROUTES from '@src/ROUTES';
import StepScreenWrapper from '@pages/iou/request/step/StepScreenWrapper';
import * as CameraPermission from './CameraPermission';
import NavigationAwareCamera from './NavigationAwareCamera';

Expand Down Expand Up @@ -170,8 +171,17 @@ function IOURequestStepScan({
return null;
}

const navigateBack = () => {
Navigation.goBack(backTo || ROUTES.HOME);
};

return (
<View style={styles.flex1}>
<StepScreenWrapper
headerTitle={translate('common.receipt')}
onBackButtonPress={navigateBack}
shouldShowWrapper={Boolean(backTo)}
testID={IOURequestStepScan.displayName}
>
{cameraPermissionStatus !== RESULTS.GRANTED && (
<View style={[styles.cameraView, styles.permissionView, styles.userSelectNone]}>
<Hand
Expand Down Expand Up @@ -282,7 +292,7 @@ function IOURequestStepScan({
/>
</PressableWithFeedback>
</View>
</View>
</StepScreenWrapper>
);
}

Expand Down

0 comments on commit fa76248

Please sign in to comment.