From 017bb086aec1b7543bb00cfeacd3d234b55638de Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 22 Apr 2024 17:43:37 -0300 Subject: [PATCH] feat: finalizado pagina nossas lojas --- components/institutional/NossasLojas.tsx | 26 ++++++++++++++++++++---- components/product/ProductDetails.tsx | 6 +++--- sections/Images/ImageGallery.tsx | 2 +- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/components/institutional/NossasLojas.tsx b/components/institutional/NossasLojas.tsx index 0a6bc37..5b0d169 100644 --- a/components/institutional/NossasLojas.tsx +++ b/components/institutional/NossasLojas.tsx @@ -1,3 +1,4 @@ +/** @titleBy cidade */ export interface Lojas { cidade: string; cep: string; @@ -11,9 +12,26 @@ export interface Props { } export default function NossasLojas({ lojas }: Props) { - console.log(lojas) + return ( - <> - - +
+ {lojas.map((loja) => ( +
+
+
+ {loja.cidade} - {loja.estado} +
+

{loja.cep}

+

{loja.endereco}

+

{loja.telefone}

+ + +
+
+ ))} +
)}; \ No newline at end of file diff --git a/components/product/ProductDetails.tsx b/components/product/ProductDetails.tsx index ad3970e..59c770f 100644 --- a/components/product/ProductDetails.tsx +++ b/components/product/ProductDetails.tsx @@ -123,7 +123,7 @@ function ProductInfo( )}
- + {formatPrice(price, offers!.priceCurrency!)} {/* @@ -132,7 +132,7 @@ function ProductInfo(
- + ou {installment?.billingDuration}x de {formatPrice( installment?.billingIncrement, offers!.priceCurrency, @@ -140,7 +140,7 @@ function ProductInfo(
- + {formatPrice(price * 0.90, offers?.priceCurrency)} diff --git a/sections/Images/ImageGallery.tsx b/sections/Images/ImageGallery.tsx index c8a2bba..0af6d18 100644 --- a/sections/Images/ImageGallery.tsx +++ b/sections/Images/ImageGallery.tsx @@ -47,7 +47,7 @@ export default function ImageGallery(props: Props) { > {images.map((item) => (