From a4c6ea7c1b166b37ba79e82b83a6b33902ffe452 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Fri, 27 Sep 2024 17:42:15 +0530 Subject: [PATCH 1/2] Adding footer section to confirmation page --- .../Views/confirmations/Confirm/Confirm.tsx | 6 +- .../components/Confirm/Footer/Footer.test.tsx | 38 ++++++ .../components/Confirm/Footer/Footer.tsx | 37 +++++ .../Footer/__snapshots__/Footer.test.tsx.snap | 129 ++++++++++++++++++ .../components/Confirm/Footer/index.ts | 1 + .../components/Confirm/Footer/style.ts | 23 ++++ .../components/SignatureRequest/Root/Root.tsx | 4 +- ...d.ts => useConfirmationRedesignEnabled.ts} | 6 +- locales/languages/en.json | 4 + 9 files changed, 241 insertions(+), 7 deletions(-) create mode 100644 app/components/Views/confirmations/components/Confirm/Footer/Footer.test.tsx create mode 100644 app/components/Views/confirmations/components/Confirm/Footer/Footer.tsx create mode 100644 app/components/Views/confirmations/components/Confirm/Footer/__snapshots__/Footer.test.tsx.snap create mode 100644 app/components/Views/confirmations/components/Confirm/Footer/index.ts create mode 100644 app/components/Views/confirmations/components/Confirm/Footer/style.ts rename app/components/Views/confirmations/hooks/{useRedesignEnabled.ts => useConfirmationRedesignEnabled.ts} (76%) diff --git a/app/components/Views/confirmations/Confirm/Confirm.tsx b/app/components/Views/confirmations/Confirm/Confirm.tsx index 1ec625b4457..914bb3ffcbf 100644 --- a/app/components/Views/confirmations/Confirm/Confirm.tsx +++ b/app/components/Views/confirmations/Confirm/Confirm.tsx @@ -3,12 +3,13 @@ import { Text, View } from 'react-native'; import BottomModal from '../../../../components/UI/BottomModal'; import { useTheme } from '../../../../util/theme'; -import useRedesignEnabled from '../hooks/useRedesignEnabled'; +import Footer from '../components/Confirm/Footer'; +import useConfirmationRedesignEnabled from '../hooks/useConfirmationRedesignEnabled'; import createStyles from './style'; const Confirm = () => { const { colors } = useTheme(); - const { isRedesignedEnabled } = useRedesignEnabled(); + const { isRedesignedEnabled } = useConfirmationRedesignEnabled(); if (!isRedesignedEnabled) { return null; @@ -20,6 +21,7 @@ const Confirm = () => { TODO +