From d178a520534af7d1cbcc03134034ad8a2327b461 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Mon, 20 Mar 2023 17:14:16 +0700 Subject: product detail and cart header --- src/pages/shop/cart.jsx | 22 ++++++++++++++++------ src/pages/shop/product/[slug].jsx | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) (limited to 'src/pages') diff --git a/src/pages/shop/cart.jsx b/src/pages/shop/cart.jsx index 7e78f215..9566cfcb 100644 --- a/src/pages/shop/cart.jsx +++ b/src/pages/shop/cart.jsx @@ -1,3 +1,6 @@ +import BasicLayout from '@/core/components/layouts/BasicLayout' +import DesktopView from '@/core/components/views/DesktopView' +import MobileView from '@/core/components/views/MobileView' import dynamic from 'next/dynamic' const AppLayout = dynamic(() => import('@/core/components/layouts/AppLayout')) @@ -5,11 +8,18 @@ const CartComponent = dynamic(() => import('@/lib/cart/components/Cart')) export default function Cart() { return ( - - - + <> + + + + + + + + + + + + ) } diff --git a/src/pages/shop/product/[slug].jsx b/src/pages/shop/product/[slug].jsx index 83939291..e8084cbe 100644 --- a/src/pages/shop/product/[slug].jsx +++ b/src/pages/shop/product/[slug].jsx @@ -4,7 +4,7 @@ import productApi from '@/lib/product/api/productApi' import dynamic from 'next/dynamic' const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout')) -const Product = dynamic(() => import('@/lib/product/components/Product')) +const Product = dynamic(() => import('@/lib/product/components/Product/Product')) export async function getServerSideProps(context) { const { slug } = context.query -- cgit v1.2.3