Skip to content

Commit

Permalink
Merge pull request #32877 from Expensify/cmartins-fixMissingHeader
Browse files Browse the repository at this point in the history
Fix missing header

(cherry picked from commit 83bd22f)
  • Loading branch information
Julesssss authored and OSBotify committed Dec 12, 2023
1 parent 8afd8fd commit 01096fb
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/pages/iou/request/step/IOURequestStepScan/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ import * as FileUtils from '@libs/fileDownload/FileUtils';
import Log from '@libs/Log';
import Navigation from '@libs/Navigation/Navigation';
import IOURequestStepRoutePropTypes from '@pages/iou/request/step/IOURequestStepRoutePropTypes';
<<<<<<< HEAD
=======
import StepScreenWrapper from '@pages/iou/request/step/StepScreenWrapper';
import withFullTransactionOrNotFound from '@pages/iou/request/step/withFullTransactionOrNotFound';
import withWritableReportOrNotFound from '@pages/iou/request/step/withWritableReportOrNotFound';
>>>>>>> 83bd22f (Merge pull request #32877 from Expensify/cmartins-fixMissingHeader)
import reportPropTypes from '@pages/reportPropTypes';
import useTheme from '@styles/themes/useTheme';
import useThemeStyles from '@styles/useThemeStyles';
Expand Down Expand Up @@ -170,8 +176,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 +297,7 @@ function IOURequestStepScan({
/>
</PressableWithFeedback>
</View>
</View>
</StepScreenWrapper>
);
}

Expand Down

0 comments on commit 01096fb

Please sign in to comment.