From c0a72c10864ee5e70ebfba4718be25eba910ccf0 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 23 Sep 2024 16:13:10 +0700
Subject: <iman> update mobile view

---
 src/pages/my/profile.jsx | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

(limited to 'src/pages/my/profile.jsx')

diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 0eeec6cf..b87aa69a 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -35,6 +35,30 @@ export default function Profile() {
     <IsAuth>
       <MobileView>
         <AppLayout title='Akun Saya'>
+          {!auth?.parentId && ubahAkun && (
+            <div className='text-sm p-4 flex items-center'>
+              <Checkbox
+                borderColor='gray.600'
+                colorScheme='red'
+                size='lg'
+                isChecked={isChecked}
+                onChange={handleChange}
+              />
+              <p className='ml-2'>Ubah ke akun bisnis</p>
+            </div>
+          )}
+          {isChecked && (
+            <div>
+              <SwitchAccount />
+              <Divider />
+            </div>
+          )}
+          {!auth?.parentId
+            ? auth?.parentId
+            : auth?.parent_id &&
+              isAprove != 'unknown' && (
+                <StatusSwitchAccount status={isAprove} />
+              )}
           <PersonalProfile />
           <Divider />
           {auth?.parentId && <CompanyProfile />}
-- 
cgit v1.2.3

