Skip to content

Commit fe65aa4

Browse files
committed
contextApi
1 parent 5175df7 commit fe65aa4

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/README.md renamed to README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ Tenha essas dependências no seu projeto
1818
1919
> npm install @react-navigation/drawer
2020
21-
### Se tiver alguma duvida é só chamar, (31)9-7556-4133, acho melhor explicar fazendo do que escrevendo aqui 🐱‍🏍🐱‍🏍
21+
### Segundo passo
22+
23+
Seguir o meu projeto, deixei as partes documentadas junto com o código
24+
25+
Se tiver alguma duvida é só chamar, (31)9-7556-4133, acho melhor explicar fazendo do que escrevendo aqui 🐱‍🏍🐱‍🏍

src/Client/SignIn.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ const Client = () => {
1212
function handleSignIn(){
1313
Keyboard.dismiss();
1414
signIn(nome, pass);
15+
16+
/*
17+
Estou pegando o nome e a senha do useState e enviando para o signIn dessa forma
18+
signIn(nome,pass); na linha 14.
19+
Pegarei o nome e o password e enviei para a página Context/authContext.js na linha 30
20+
*/
1521
}
1622

1723
return(

src/Context/authContext.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ export const AuthProvider = ({children}) => {
5454
setError(true)
5555
})
5656
}
57+
58+
/*
59+
Peguei o nome e o pass e joguei elas na linha 40 e 41.
60+
*/
61+
5762
/************* Logar *************/
5863

5964
/************* Deslogar *************/

0 commit comments

Comments
 (0)