From eb4ae7be05ed97bd02b7f3e9cc56393f435188e2 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Wed, 14 Jun 2023 13:22:20 +0700
Subject: layout promotion program di detail product dan layout modal popup

---
 src/pages/shop/cart.jsx | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

(limited to 'src/pages/shop/cart.jsx')

diff --git a/src/pages/shop/cart.jsx b/src/pages/shop/cart.jsx
index e574f14d..a7f2037b 100644
--- a/src/pages/shop/cart.jsx
+++ b/src/pages/shop/cart.jsx
@@ -2,6 +2,7 @@ import Seo from '@/core/components/Seo'
 import BasicLayout from '@/core/components/layouts/BasicLayout'
 import DesktopView from '@/core/components/views/DesktopView'
 import MobileView from '@/core/components/views/MobileView'
+import IsAuth from '@/lib/auth/components/IsAuth'
 import dynamic from 'next/dynamic'
 
 const AppLayout = dynamic(() => import('@/core/components/layouts/AppLayout'))
@@ -12,17 +13,19 @@ export default function Cart() {
     <>
       <Seo title='Keranjang Belanja Indoteknik.com' />
 
-      <MobileView>
-        <AppLayout title='Keranjang' withFooter={false}>
-          <CartComponent />
-        </AppLayout>
-      </MobileView>
+      <IsAuth>
+        <MobileView>
+          <AppLayout title='Keranjang' withFooter={false}>
+            <CartComponent />
+          </AppLayout>
+        </MobileView>
 
-      <DesktopView>
-        <BasicLayout>
-          <CartComponent />
-        </BasicLayout>
-      </DesktopView>
+        <DesktopView>
+          <BasicLayout>
+            <CartComponent />
+          </BasicLayout>
+        </DesktopView>
+      </IsAuth>
     </>
   )
 }
-- 
cgit v1.2.3

