Commit ac436b63 authored by Joao Pedro Lima's avatar Joao Pedro Lima
Browse files

alterei o nome do bottom tabs na navegaçao, e função logout agr leva para a tela prelogin

parent 7dd15e62
Showing with 5 additions and 6 deletions
+5 -6
......@@ -10,7 +10,7 @@ import { useNavigation } from 'expo-router';
type RootStackParamList = {
signup: undefined;
home: undefined;
tab: undefined;
prelogin: undefined;
};
......@@ -49,7 +49,7 @@ export default function Login() {
/>
</View>
<ButtonComponent
onPress={() => navigation.navigate('home')}
onPress={() => navigation.navigate('tab')}
text={'Entrar com o seu e-mail'}
backgroundColor="#171817"
textColor="white"
......
......@@ -35,7 +35,7 @@ const MyStack = () => {
<Stack.Screen name="signup" component={Signup} />
<Stack.Screen name="privacy" component={Privacy} />
<Stack.Screen name="useterms" component={UseTerms} />
<Stack.Screen name="home" component={BottomTabNavigator} />
<Stack.Screen name="tab" component={BottomTabNavigator} />
</Stack.Navigator>
);
};
......
import React from 'react';
import { View, StyleSheet } from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { useNavigation } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stack';
import ButtonComponent from '@/components/buttons/ButtonComponent';
type RootStackParamList = {
login: undefined;
prelogin: undefined;
};
type ProfileScreenNavigationProp = StackNavigationProp<RootStackParamList>;
......@@ -17,7 +16,7 @@ const ProfileScreen = () => {
return (
<View style={styles.container}>
<ButtonComponent
onPress={() => navigation.navigate('login')}
onPress={() => navigation.navigate('prelogin')}
text="Logout"
textColor="black"
/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment