summaryrefslogtreecommitdiff
path: root/src/pages/shop/checkout
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-27 10:49:45 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-27 10:49:45 +0700
commitffa261e6adef70a2845878cf93e6e492eb8cee62 (patch)
treec860ac8d127795ee813af59923305736596264c2 /src/pages/shop/checkout
parent14ad96a9d010790fe7a482035d6d88f36db660fe (diff)
footer
Diffstat (limited to 'src/pages/shop/checkout')
-rw-r--r--src/pages/shop/checkout/finish.jsx9
-rw-r--r--src/pages/shop/checkout/index.jsx9
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>
)
}