From 8a7152da357db5582b928a51528e291f4fb01c5c Mon Sep 17 00:00:00 2001 From: Ronnie Beggs Date: Wed, 24 Apr 2024 14:39:44 -0700 Subject: [PATCH] [fix] remove redundant back buttons from profile screens. --- src/app/(Authentication)/_layout.tsx | 6 +----- .../(BottomTabNavigation)/Profile/EditAddress/index.tsx | 6 ------ src/app/(BottomTabNavigation)/Profile/EditName/index.tsx | 6 ------ .../(BottomTabNavigation)/Profile/ResetConfirm/index.tsx | 7 ------- 4 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/app/(Authentication)/_layout.tsx b/src/app/(Authentication)/_layout.tsx index 6f6649c1..cbe705d0 100644 --- a/src/app/(Authentication)/_layout.tsx +++ b/src/app/(Authentication)/_layout.tsx @@ -1,13 +1,9 @@ import { Stack } from 'expo-router'; import React from 'react'; -import { - BackButtonNoText, - BackButtonText, -} from '../../Components/BackButtons/BackButtons'; +import { BackButtonNoText } from '../../Components/BackButtons/BackButtons'; import { LeftAlignedHeader, - HeaderImage, EmptyHeader, } from '../../Components/HeaderComponents/HeaderComponents'; import { CaseContextProvider } from '../../context/CaseContext'; diff --git a/src/app/(BottomTabNavigation)/Profile/EditAddress/index.tsx b/src/app/(BottomTabNavigation)/Profile/EditAddress/index.tsx index c37d38c7..e2ec2383 100644 --- a/src/app/(BottomTabNavigation)/Profile/EditAddress/index.tsx +++ b/src/app/(BottomTabNavigation)/Profile/EditAddress/index.tsx @@ -61,12 +61,6 @@ function EditNameScreen() { return ( - router.push('/Profile/')} - > - Back - Edit account details diff --git a/src/app/(BottomTabNavigation)/Profile/EditName/index.tsx b/src/app/(BottomTabNavigation)/Profile/EditName/index.tsx index ee2fd980..8bde2897 100644 --- a/src/app/(BottomTabNavigation)/Profile/EditName/index.tsx +++ b/src/app/(BottomTabNavigation)/Profile/EditName/index.tsx @@ -17,12 +17,6 @@ function EditNameScreen() { return ( - router.push('/Profile/')} - > - Back - Edit account details diff --git a/src/app/(BottomTabNavigation)/Profile/ResetConfirm/index.tsx b/src/app/(BottomTabNavigation)/Profile/ResetConfirm/index.tsx index d99ba39b..b9eecec7 100644 --- a/src/app/(BottomTabNavigation)/Profile/ResetConfirm/index.tsx +++ b/src/app/(BottomTabNavigation)/Profile/ResetConfirm/index.tsx @@ -31,13 +31,6 @@ export default function ResetConfirm() { return ( - router.back()} - > - Back - - Reset Password