Skip to content

Commit

Permalink
[fix] remove redundant back buttons from profile screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronniebeggs committed Apr 24, 2024
1 parent 0e7057c commit 8a7152d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
6 changes: 1 addition & 5 deletions src/app/(Authentication)/_layout.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 0 additions & 6 deletions src/app/(BottomTabNavigation)/Profile/EditAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ function EditNameScreen() {

return (
<View style={styles.container}>
<TouchableOpacity
style={styles.backButton}
onPress={() => router.push('/Profile/')}
>
<Text style={styles.backText}>Back</Text>
</TouchableOpacity>
<Text style={styles.instructionText}>Edit account details</Text>

<View style={styles.inputBox}>
Expand Down
6 changes: 0 additions & 6 deletions src/app/(BottomTabNavigation)/Profile/EditName/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ function EditNameScreen() {

return (
<View style={styles.container}>
<TouchableOpacity
style={styles.backButton}
onPress={() => router.push('/Profile/')}
>
<Text style={styles.backText}>Back</Text>
</TouchableOpacity>
<Text style={styles.instructionText}>Edit account details</Text>

<View style={styles.inputBox}>
Expand Down
7 changes: 0 additions & 7 deletions src/app/(BottomTabNavigation)/Profile/ResetConfirm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ export default function ResetConfirm() {
return (
<View style={styles.container}>
<View style={styles.contentContainer}>
<TouchableOpacity
style={styles.backContainer}
onPress={() => router.back()}
>
<Text style={styles.backText}>Back</Text>
</TouchableOpacity>

<Text style={styles.titleText}>Reset Password</Text>

<View style={styles.instructionContainer}>
Expand Down

0 comments on commit 8a7152d

Please sign in to comment.