From 4a23d0c7c880b67d571ca34efe93cbf2c1bba721 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 22 Jan 2025 13:16:05 +0700
Subject: <iman> update merchant

---
 src/pages/daftar-merchant.jsx | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 src/pages/daftar-merchant.jsx

(limited to 'src/pages/daftar-merchant.jsx')

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>
-    </>
-  );
-}
-- 
cgit v1.2.3

