diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-22 13:16:05 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-22 13:16:05 +0700 |
| commit | 4a23d0c7c880b67d571ca34efe93cbf2c1bba721 (patch) | |
| tree | ac90ad2fb5f0b007dd49ca9af04bd7e59a93efd4 /src/pages/daftar-merchant | |
| parent | 5cc3c938da3dfde636b918b8f2fdef33f3c61419 (diff) | |
<iman> update merchant
Diffstat (limited to 'src/pages/daftar-merchant')
| -rw-r--r-- | src/pages/daftar-merchant/[status].jsx | 0 | ||||
| -rw-r--r-- | src/pages/daftar-merchant/index.jsx | 25 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/pages/daftar-merchant/[status].jsx b/src/pages/daftar-merchant/[status].jsx new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/pages/daftar-merchant/[status].jsx diff --git a/src/pages/daftar-merchant/index.jsx b/src/pages/daftar-merchant/index.jsx new file mode 100644 index 00000000..8ea6cfd1 --- /dev/null +++ b/src/pages/daftar-merchant/index.jsx @@ -0,0 +1,25 @@ +import Seo from '@/core/components/Seo'; +import BasicLayout from '@/core/components/layouts/BasicLayout'; +import CreateMerchant from '@/lib/merchant/components/Merchant'; +import ErrorMerchant from '@/lib/merchant/components/AccountSwitch'; +import useAuth from '@/core/hooks/useAuth'; +import { useRouter } from 'next/router'; +export default function DaftarMerchant() { + const router = useRouter(); + const auth = useAuth(); + if (auth == false) { + router.push(`/login?next=${encodeURIComponent('/daftar-merchant')}`); + } + if (!auth) { + return; + } + return ( + <> + <Seo title='Daftar Merchant - Indoteknik.com' /> + + <BasicLayout> + {auth && auth?.company ? <CreateMerchant /> : <ErrorMerchant />} + </BasicLayout> + </> + ); +} |
