Open
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. |
Janaylla
reviewed
Oct 13, 2021
| <p><strong>{perfil.name}</strong>, {perfil.age}</p> | ||
| <p>{perfil.bio}</p> | ||
| </div> | ||
| <div> |
There was a problem hiding this comment.
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>
Janaylla
reviewed
Oct 13, 2021
| console.log(error) | ||
| }) | ||
| } | ||
|
|
There was a problem hiding this comment.
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,
}
yuzokamoto
approved these changes
Oct 28, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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