Skip to content

Commit

Permalink
Merge pull request #44296 from Expensify/neil-review-not-found
Browse files Browse the repository at this point in the history
[CP Staging] Not found page for review of missing transaction
  • Loading branch information
yuwenmemon authored Jun 24, 2024
2 parents 7391a52 + f66f936 commit 2d6d067
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/pages/TransactionDuplicate/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {useRoute} from '@react-navigation/native';
import React, {useMemo} from 'react';
import {View} from 'react-native';
import {useOnyx} from 'react-native-onyx';
import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView';
import Button from '@components/Button';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
Expand Down Expand Up @@ -42,16 +43,18 @@ function TransactionDuplicateReview() {
};

return (
<ScreenWrapper testID={TransactionDuplicateReview.displayName}>
<HeaderWithBackButton title={translate('iou.reviewDuplicates')} />
<View style={[styles.justifyContentCenter, styles.ph5, styles.pb3, styles.borderBottom]}>
<Button
text={translate('iou.keepAll')}
onPress={keepAll}
/>
</View>
<DuplicateTransactionsList transactions={transactions} />
</ScreenWrapper>
<FullPageNotFoundView shouldShow={transactionID === '-1'}>
<ScreenWrapper testID={TransactionDuplicateReview.displayName}>
<HeaderWithBackButton title={translate('iou.reviewDuplicates')} />
<View style={[styles.justifyContentCenter, styles.ph5, styles.pb3, styles.borderBottom]}>
<Button
text={translate('iou.keepAll')}
onPress={keepAll}
/>
</View>
<DuplicateTransactionsList transactions={transactions} />
</ScreenWrapper>
</FullPageNotFoundView>
);
}

Expand Down

0 comments on commit 2d6d067

Please sign in to comment.