felipemotarocha / fullstackweek-store

https://fullstackweek-store.vercel.app
243 stars 82 forks source link

feat: added code improvements and performed refactorings #39

Open EraldoCarlosfh opened 5 months ago

EraldoCarlosfh commented 5 months ago

add utils formatedPrice to remove the need for toFixed(2) and format to real value, added CartPrice shared component, rename property subtotal to subTotal to follow standard.

Alterações: Foi criado um metódo formattedPrice para remover a necessidade de toFixed(2) e formatar para valor real. Adicionado o componente compartilhado CartPrice pra exibir valor total, subtotal, frete e descontos no carrinho. Refatoramente daa propriedade subtotal para subTotal para seguir o padrão.

vercel[bot] commented 5 months ago

@EraldoCarlosfh is attempting to deploy a commit to the felipefullstackclu's projects Team on Vercel.

A member of the Team first needs to authorize it.