diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-10-03 07:09:46 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-10-03 07:09:46 +0000 |
| commit | 79e1000887b6326475251624575655bb65c296db (patch) | |
| tree | 58e2365bd541e2d1eed482877baa383ece2649ba /src/pages | |
| parent | 78d568e5978a60f5e7916cb022463a6e27dd4d54 (diff) | |
| parent | 6832012bb3a7a694852a4eb453f3ff8fe6a0300b (diff) | |
Merged in update/notifikasi-checkout (pull request #344)
Update/notifikasi checkout
Approved-by: trisusilo
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/shop/checkout/[status].jsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pages/shop/checkout/[status].jsx b/src/pages/shop/checkout/[status].jsx index 2c3bebcf..0d5cffe8 100644 --- a/src/pages/shop/checkout/[status].jsx +++ b/src/pages/shop/checkout/[status].jsx @@ -1,22 +1,22 @@ -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' -import axios from 'axios' -import Seo from '@/core/components/Seo' +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'; +import axios from 'axios'; +import Seo from '@/core/components/Seo'; export async function getServerSideProps(context) { - const { order_id } = context.query + const { order_id } = context.query; await axios.post( `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/finish-checkout?orderName=${order_id}`, {}, { headers: context.req.headers } - ) - return { props: {} } + ); + return { props: {} }; } export default function Finish() { - const router = useRouter() + const router = useRouter(); return ( <> @@ -28,5 +28,5 @@ export default function Finish() { </BasicLayout> </IsAuth> </> - ) + ); } |
