Skip to content

Commit

Permalink
Corrigindo erro de Signup (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
GEdO23 authored Jun 8, 2024
1 parent 1e3b258 commit 707555e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/provider/user-provider/user-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ export default interface UserProps {
password: string;
cep: string;
phone: string;
profilePicture: {uri: string};
profileBackground: string;
}
4 changes: 2 additions & 2 deletions src/screens/signup/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type NavigationProps = StackNavigationProp<RootStackParamList, 'Access'>
export default function Signup() {
const navigation = useNavigation<NavigationProps>()

const { cep, email, name, password, phone, profilePicture, profileBackground, setEmail, setName, setPassword, cleanUserInputs } = useContext(UserContext)
const { cep, email, name, password, phone, setEmail, setName, setPassword, cleanUserInputs } = useContext(UserContext)


const handleSignup = async (_user: UserProps) => {
Expand All @@ -50,7 +50,7 @@ export default function Signup() {

<Form.Link label='Já tem uma conta?' text='Acessar' onPress={() => navigation.replace('Login')} />

<Form.Button title='Cadastrar-se' onPress={() => handleSignup({ cep, email, name, password, phone, profilePicture, profileBackground })} />
<Form.Button title='Cadastrar-se' onPress={() => handleSignup({ cep, email, name, password, phone })} />
</Form.Container>
</View>
)
Expand Down

0 comments on commit 707555e

Please sign in to comment.