From 24035ac44f912acead64893ae18c9c605eea234b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89verton=20Toffanetto?= Date: Sun, 17 Nov 2024 21:54:33 -0300 Subject: [PATCH] feat: add default values --- src/components/molecules/CardProduct/index.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/molecules/CardProduct/index.tsx b/src/components/molecules/CardProduct/index.tsx index 921ca13..c9e8efc 100644 --- a/src/components/molecules/CardProduct/index.tsx +++ b/src/components/molecules/CardProduct/index.tsx @@ -9,7 +9,7 @@ import type { CardProductProps } from './types' export const CardProduct = ({ id, - img, + img = PRODUCT_WITHOUT_IMAGE, product, price, hasFixedPrice, @@ -23,13 +23,7 @@ export const CardProduct = ({ return (
- title + title