diff --git a/src/app/auth/_layout.tsx b/src/app/auth/_layout.tsx index ff3803ea..9d255f97 100644 --- a/src/app/auth/_layout.tsx +++ b/src/app/auth/_layout.tsx @@ -3,7 +3,6 @@ import { Stack } from 'expo-router'; function StackLayout() { return ( - diff --git a/src/app/auth/forgotPassword/_layout.tsx b/src/app/auth/forgotPassword/_layout.tsx new file mode 100644 index 00000000..d021a461 --- /dev/null +++ b/src/app/auth/forgotPassword/_layout.tsx @@ -0,0 +1,11 @@ +import { Stack } from 'expo-router'; + +function StackLayout() { + return ( + + + + ); +} + +export default StackLayout; diff --git a/src/app/auth/forgotPassword.tsx b/src/app/auth/forgotPassword/index.tsx similarity index 86% rename from src/app/auth/forgotPassword.tsx rename to src/app/auth/forgotPassword/index.tsx index daed9252..ce73303d 100644 --- a/src/app/auth/forgotPassword.tsx +++ b/src/app/auth/forgotPassword/index.tsx @@ -1,10 +1,11 @@ import { router } from 'expo-router'; import React, { useState } from 'react'; -import { Alert, TextInput, View, StyleSheet } from 'react-native'; +import { Alert, TextInput, View } from 'react-native'; import { Button, Input } from 'react-native-elements'; -import globalStyles from '../../styles/globalStyles'; -import { useSession } from '../../utils/AuthContext'; +import styles from './styles'; +import globalStyles from '../../../styles/globalStyles'; +import { useSession } from '../../../utils/AuthContext'; function ForgotPasswordScreen() { const { updateUser, signOut, resetPassword, verifyOtp } = useSession(); @@ -115,23 +116,3 @@ function ForgotPasswordScreen() { } export default ForgotPasswordScreen; - -const styles = StyleSheet.create({ - input: { - height: 40, - borderColor: 'gray', - borderWidth: 1, - marginTop: 10, - padding: 5, - }, - verticallySpaced: { - paddingTop: 4, - paddingBottom: 4, - alignSelf: 'stretch', - }, - container: { - paddingVertical: 63, - paddingLeft: 43, - paddingRight: 44, - }, -}); diff --git a/src/app/auth/forgotPassword/styles.tsx b/src/app/auth/forgotPassword/styles.tsx new file mode 100644 index 00000000..daea4952 --- /dev/null +++ b/src/app/auth/forgotPassword/styles.tsx @@ -0,0 +1,21 @@ +import { StyleSheet } from 'react-native'; + +export default StyleSheet.create({ + input: { + height: 40, + borderColor: 'gray', + borderWidth: 1, + marginTop: 10, + padding: 5, + }, + verticallySpaced: { + paddingTop: 4, + paddingBottom: 4, + alignSelf: 'stretch', + }, + container: { + paddingVertical: 63, + paddingLeft: 43, + paddingRight: 44, + }, +}); diff --git a/src/app/auth/index.tsx b/src/app/auth/index.tsx deleted file mode 100644 index 22156936..00000000 --- a/src/app/auth/index.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { router } from 'expo-router'; -import { Button, Text } from 'react-native'; -import { SafeAreaView } from 'react-native-safe-area-context'; - -import globalStyles from '../../styles/globalStyles'; - -function LoginScreen() { - return ( - - Auth -