Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jan 14, 2021

Oie! Esse é um PR de correcao que nao precisa ser mergeado. A avaliacao do trabalho estará um pouco mais abaixo na pagina.

@@ -1 +1,9 @@
Sejam bem vindos ao Labe-commerce, esse repositório contém um esqueleto de app React e um .gitignore.
Labecommerce 5
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parabens pelo cuidado com o README! Isso é bem importante e dá uma ótima primeira impressao!

Comment on lines +22 to +28
const Button = styled.button`
padding: 2vh 2.6vw;
background-color: black;
color: white;
`

const BotaoRemover = styled.button`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cuidado com a mistura de idiomas na hora de declarar as variáveis e componentes. Tambem lembrem-se de criar variáveis com nomes significativos! BotaoRemover é bom, mas Button apenas pode gerar confusao.

Comment on lines +209 to +221
const componentProduto = listaFiltrada.map((produto) => {
return (
<div>
<Home
imageUrl={produto.imageUrl}
name={produto.name}
value={produto.value}
/>
<Button onClick={() => this.selecionarProduto(produto.id)}>Adicionar ao Carrinho</Button>
</div>

)
})
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esse trecho de código poderia ser um componente :))

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lista filtrada poderia ser uma props!

Comment on lines +4 to +37
const Produto = styled.div`
margin: 0;
padding: 0;
height: 25vh;
display: flex;
flex-direction: column;
`
const Imagem = styled.img`
width: 5vw;
`
const Teste = styled.div`
display: flex;
flex-direction: column;
height: 10.6vh;
`
const DivImagem = styled.div`
width: 15vw;
heigth: 13vh;
`
const Teste2 = styled.div`
display: flex;
height: 15vh;
width: 15vw;
padding-top: 0.5vh;
margin-left: auto;
margin-right: auto;
`
const Valor = styled.div`
font-size: 30px;
text-align: center;
`
const Nome = styled.p`
width: 11vw;
`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ótimo trabalho com styled-components!

@@ -0,0 +1,27 @@
// import React, { Component } from 'react'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Código comentado pode e deve ser retirado antes da entrega final do projeto! Lembrem de revisar e tirar o que for desnecessário.

produtoCarrinho={componentCarrinho}
>
</ContainerProdutoCarrinho>
<span>Total: RS<span>{valorTotal}</span>,00</span>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ao invés do ",00" no final do preco, voces podem usar o método toFixed(2), que estabelece que o número sempre tenha duas casas decimais. É melhor para lidar com centavos!

@ghost
Copy link
Author

ghost commented Jan 14, 2021

Oi grupo! A entrega de voces foi avaliada como dentro do esperado. Parabéns! 🎈

Filtros sao um pouco complicados mesmo, mas o restante do projeto está funcionando bem. Nao deixem de assistir os vídeos que estao no canal de anuncios sobre filtro e ordenacao em React! Qualquer dúvida é só mandar por la!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants