Skip to content

Commit 806e34f

Browse files
yuwenmemonOSBotify
authored andcommitted
Merge pull request #44296 from Expensify/neil-review-not-found
[CP Staging] Not found page for review of missing transaction (cherry picked from commit 2d6d067)
1 parent 791f3ad commit 806e34f

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/pages/TransactionDuplicate/Review.tsx

+13-10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {useRoute} from '@react-navigation/native';
33
import React, {useMemo} from 'react';
44
import {View} from 'react-native';
55
import {useOnyx} from 'react-native-onyx';
6+
import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView';
67
import Button from '@components/Button';
78
import HeaderWithBackButton from '@components/HeaderWithBackButton';
89
import ScreenWrapper from '@components/ScreenWrapper';
@@ -42,16 +43,18 @@ function TransactionDuplicateReview() {
4243
};
4344

4445
return (
45-
<ScreenWrapper testID={TransactionDuplicateReview.displayName}>
46-
<HeaderWithBackButton title={translate('iou.reviewDuplicates')} />
47-
<View style={[styles.justifyContentCenter, styles.ph5, styles.pb3, styles.borderBottom]}>
48-
<Button
49-
text={translate('iou.keepAll')}
50-
onPress={keepAll}
51-
/>
52-
</View>
53-
<DuplicateTransactionsList transactions={transactions} />
54-
</ScreenWrapper>
46+
<FullPageNotFoundView shouldShow={transactionID === '-1'}>
47+
<ScreenWrapper testID={TransactionDuplicateReview.displayName}>
48+
<HeaderWithBackButton title={translate('iou.reviewDuplicates')} />
49+
<View style={[styles.justifyContentCenter, styles.ph5, styles.pb3, styles.borderBottom]}>
50+
<Button
51+
text={translate('iou.keepAll')}
52+
onPress={keepAll}
53+
/>
54+
</View>
55+
<DuplicateTransactionsList transactions={transactions} />
56+
</ScreenWrapper>
57+
</FullPageNotFoundView>
5558
);
5659
}
5760

0 commit comments

Comments
 (0)