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.jsx | |
| parent | 5cc3c938da3dfde636b918b8f2fdef33f3c61419 (diff) | |
<iman> update merchant
Diffstat (limited to 'src/pages/daftar-merchant.jsx')
| -rw-r--r-- | src/pages/daftar-merchant.jsx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/pages/daftar-merchant.jsx b/src/pages/daftar-merchant.jsx deleted file mode 100644 index b51589e8..00000000 --- a/src/pages/daftar-merchant.jsx +++ /dev/null @@ -1,29 +0,0 @@ -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></CreateMerchant> - ) : ( - <ErrorMerchant /> - )} - </BasicLayout> - </> - ); -} |
