From f51d3946be44400b9f4b90fe03b79226522d7369 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 29 Dec 2022 09:12:14 +0700 Subject: no message --- src/components/LineDivider.js | 2 +- src/pages/shop/product/[slug].js | 80 +++++++++++++++++++++++----------------- 2 files changed, 47 insertions(+), 35 deletions(-) (limited to 'src') diff --git a/src/components/LineDivider.js b/src/components/LineDivider.js index ce92f4ee..4e8c7b52 100644 --- a/src/components/LineDivider.js +++ b/src/components/LineDivider.js @@ -1,6 +1,6 @@ const LineDivider = () => { return ( -
+
); }; diff --git a/src/pages/shop/product/[slug].js b/src/pages/shop/product/[slug].js index b76cdee9..16763ab7 100644 --- a/src/pages/shop/product/[slug].js +++ b/src/pages/shop/product/[slug].js @@ -11,6 +11,7 @@ import { createOrUpdateItemCart } from "../../../helpers/cart"; import toast from "react-hot-toast"; import Footer from "../../../components/Footer"; import Image from "../../../components/Image"; +import LineDivider from "../../../components/LineDivider"; export async function getServerSideProps( context ) { const { slug } = context.query; @@ -113,7 +114,8 @@ export default function ProductDetail({ product }) { alt={product.name} className="border-b border-gray_r-6 w-full h-[300px] object-contain object-center bg-white" /> -
+ +
{product.manufacture.name ?? '-'} @@ -135,8 +137,12 @@ export default function ProductDetail({ product }) { ) : (

Dapatkan harga terbaik, hubungi kami.

)} +
+ + -
+
+