@@ -3,6 +3,7 @@ import {useRoute} from '@react-navigation/native';
3
3
import React , { useMemo } from 'react' ;
4
4
import { View } from 'react-native' ;
5
5
import { useOnyx } from 'react-native-onyx' ;
6
+ import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView' ;
6
7
import Button from '@components/Button' ;
7
8
import HeaderWithBackButton from '@components/HeaderWithBackButton' ;
8
9
import ScreenWrapper from '@components/ScreenWrapper' ;
@@ -42,16 +43,18 @@ function TransactionDuplicateReview() {
42
43
} ;
43
44
44
45
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 >
55
58
) ;
56
59
}
57
60
0 commit comments