diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-27 10:49:45 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-27 10:49:45 +0700 |
| commit | ffa261e6adef70a2845878cf93e6e492eb8cee62 (patch) | |
| tree | c860ac8d127795ee813af59923305736596264c2 /src/pages/shop/checkout | |
| parent | 14ad96a9d010790fe7a482035d6d88f36db660fe (diff) | |
footer
Diffstat (limited to 'src/pages/shop/checkout')
| -rw-r--r-- | src/pages/shop/checkout/finish.jsx | 9 | ||||
| -rw-r--r-- | src/pages/shop/checkout/index.jsx | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src/pages/shop/checkout/finish.jsx b/src/pages/shop/checkout/finish.jsx index fb6970f6..cc64199f 100644 --- a/src/pages/shop/checkout/finish.jsx +++ b/src/pages/shop/checkout/finish.jsx @@ -1,4 +1,5 @@ import BasicLayout from '@/core/components/layouts/BasicLayout' +import IsAuth from '@/lib/auth/components/IsAuth' import FinishCheckoutComponent from '@/lib/checkout/components/FinishCheckout' import { useRouter } from 'next/router' @@ -6,8 +7,10 @@ export default function Finish() { const router = useRouter() return ( - <BasicLayout> - <FinishCheckoutComponent id={router.query.id || 0} /> - </BasicLayout> + <IsAuth> + <BasicLayout> + <FinishCheckoutComponent id={router.query.id || 0} /> + </BasicLayout> + </IsAuth> ) } diff --git a/src/pages/shop/checkout/index.jsx b/src/pages/shop/checkout/index.jsx index 5e8f2663..015a11b3 100644 --- a/src/pages/shop/checkout/index.jsx +++ b/src/pages/shop/checkout/index.jsx @@ -1,10 +1,13 @@ import AppLayout from '@/core/components/layouts/AppLayout' +import IsAuth from '@/lib/auth/components/IsAuth' import CheckoutComponent from '@/lib/checkout/components/Checkout' export default function Checkout() { return ( - <AppLayout title='Checkout'> - <CheckoutComponent /> - </AppLayout> + <IsAuth> + <AppLayout title='Checkout'> + <CheckoutComponent /> + </AppLayout> + </IsAuth> ) } |
