From cf622a69d4ca105835a6067be801ba6cfcf509a1 Mon Sep 17 00:00:00 2001 From: dominictb Date: Tue, 23 Jul 2024 11:17:19 +0700 Subject: [PATCH] fix: add not found view if reviewDuplicates is empty --- .../TransactionDuplicate/Confirmation.tsx | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/src/pages/TransactionDuplicate/Confirmation.tsx b/src/pages/TransactionDuplicate/Confirmation.tsx index 8d2ece49c417..a887754c7a92 100644 --- a/src/pages/TransactionDuplicate/Confirmation.tsx +++ b/src/pages/TransactionDuplicate/Confirmation.tsx @@ -4,6 +4,7 @@ import React, {useCallback, useMemo} from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import {useOnyx} from 'react-native-onyx'; +import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView'; import Button from '@components/Button'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import MoneyRequestView from '@components/ReportActionItem/MoneyRequestView'; @@ -59,34 +60,36 @@ function Confirmation() { testID={Confirmation.displayName} shouldShowOfflineIndicator > - - - - - {translate('violations.confirmDetails')} - - {translate('violations.confirmDuplicatesInfo')} - - {/* We need that provider here becuase MoneyRequestView component require that */} - - } + + + + + + {translate('violations.confirmDetails')} + + {translate('violations.confirmDuplicatesInfo')} + + {/* We need that provider here becuase MoneyRequestView component require that */} + + } + /> + +