diff options
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/shop/cart.jsx | 23 |
1 files changed, 13 insertions, 10 deletions
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> </> ) } |
