diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-23 16:13:10 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-23 16:13:10 +0700 |
| commit | c0a72c10864ee5e70ebfba4718be25eba910ccf0 (patch) | |
| tree | 81e7264957b943b00f36e45593653e0dfb848fb7 /src/pages/my | |
| parent | f404f9801db1f234ae03ec9c9542ba5d4aa1bf46 (diff) | |
<iman> update mobile view
Diffstat (limited to 'src/pages/my')
| -rw-r--r-- | src/pages/my/profile.jsx | 24 |
1 files changed, 24 insertions, 0 deletions
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 />} |
