From 37bda78dec58cb8c218849a77620d95682b201b9 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Tue, 26 Aug 2025 15:38:29 +0700 Subject: Major Fix --- public/images/doc.svg | 3 + public/images/doc_red.svg | 5 + public/images/document.png | Bin 529 -> 0 bytes .../product-detail/components/AddToCart.tsx | 9 +- .../product-detail/components/AddToQuotation.tsx | 7 +- .../product-detail/components/PriceAction.tsx | 14 +- .../product-detail/components/ProductDetail.tsx | 4 +- src/lib/category/components/Breadcrumb.jsx | 180 +++++---------------- 8 files changed, 70 insertions(+), 152 deletions(-) create mode 100644 public/images/doc.svg create mode 100644 public/images/doc_red.svg delete mode 100644 public/images/document.png diff --git a/public/images/doc.svg b/public/images/doc.svg new file mode 100644 index 00000000..5e811ab2 --- /dev/null +++ b/public/images/doc.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/images/doc_red.svg b/public/images/doc_red.svg new file mode 100644 index 00000000..7816ac92 --- /dev/null +++ b/public/images/doc_red.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/public/images/document.png b/public/images/document.png deleted file mode 100644 index d1772b8c..00000000 Binary files a/public/images/document.png and /dev/null differ diff --git a/src-migrate/modules/product-detail/components/AddToCart.tsx b/src-migrate/modules/product-detail/components/AddToCart.tsx index 9f66345e..1cb58a75 100644 --- a/src-migrate/modules/product-detail/components/AddToCart.tsx +++ b/src-migrate/modules/product-detail/components/AddToCart.tsx @@ -1,6 +1,6 @@ import BottomPopup from '@/core/components/elements/Popup/BottomPopup'; import style from '../styles/price-action.module.css'; -import { Button, Link, useToast } from '@chakra-ui/react'; +import { Button, color, Link, useToast } from '@chakra-ui/react'; import product from 'next-seo/lib/jsonld/product'; import { useRouter } from 'next/router'; import { useEffect, useState } from 'react'; @@ -163,13 +163,13 @@ const AddToCart = ({ const btnConfig = { add_to_cart: { - colorScheme: isDesktop ? 'yellow' : 'red', - variant: 'solid', + colorScheme: 'red', + variant: 'outline', text: 'Keranjang', }, buy: { colorScheme: 'red', - variant: isDesktop ? 'solid' : 'outline', + variant: 'solid', text: isDesktop ? 'Beli' : 'Beli Sekarang', }, }; @@ -190,6 +190,7 @@ const AddToCart = ({