-
Notifications
You must be signed in to change notification settings - Fork 0
Astromatch #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Astromatch #24
Conversation
|
Parabéns pela entrega! Requisitos do projeto ✅
Comentários da pessoa avaliadoraParabéns pela entrega 🚀 🚀 🚀 !! Fez bem em focar nas funcionalidades, porém seria interessante que as imagens não ocupassem tanto espaço a ponto de atrapalhar a usabilidade do projeto. |
| <p><strong>{perfil.name}</strong>, {perfil.age}</p> | ||
| <p>{perfil.bio}</p> | ||
| </div> | ||
| <div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nessa parte o único botões que manda o post de escolha para a api é o sim, caso o usuário não goste do perfil e resolva não dar matches nada acontece, sugestão de solução:
<button onClick={()=> getMatches(true)}>Sim</button>
<button onClick={()=> getMatches(false)}> Nao</button>
| console.log(error) | ||
| }) | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aqui você poderia ter passado a escolha do usuário se ele gostou do perfil ou não, que o que muda em cada requisição o perfil é o mesmo que esta sendo exibido, por tanto pode vir direto do state, exemplo da sugestão:
const getMatches = (choice) =>{
const url = "https://us-central1-missao-newton.cloudfunctions.net/astroMatch/sthefane-oliveira-Maryam/choose-person"
const headers = {
headers: {
"Content-Type":"application/json"
}
}
const body ={
id: perfil.id,
choice: choice,
}
POR FAVOR, EDITE ESSA MENSAGEM INSERINDO AS INFORMAÇÕES DO SEU PROJETO. COMECE APAGANDO ESSA LINHA.
INSIRA O NOME NOME DO PROJETO AQUI
O que funciona
O que não funciona
falta uma parte que terminarei esse final de semana
Link Surge
A PARTIR DA SEMANA 5, INSIRA AQUI O LINK DO SURGE. ANTES DISSO, APAGUE ESSAS DUAS LINHAS.
Imagens
TIRE PRINTS DAS TELAS DO SEU SITE E COLE AQUI