diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-02-04 15:16:37 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-02-04 15:16:37 +0700 |
| commit | 8efe9fb6dd906431dcaed1818aae07692aeaa094 (patch) | |
| tree | 4160c70736b0bf41db6870629daf99e45036699b /src/pages/my/profile.jsx | |
| parent | 1bd83d0dccc3d02113e0939c7acaa25a39042fa7 (diff) | |
<iman> update logic switch account
Diffstat (limited to 'src/pages/my/profile.jsx')
| -rw-r--r-- | src/pages/my/profile.jsx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx index eaf3341c..77c108cb 100644 --- a/src/pages/my/profile.jsx +++ b/src/pages/my/profile.jsx @@ -108,18 +108,19 @@ export default function Profile() { <Menu /> </div> <div className='w-9/12 bg-white border border-gray_r-6 rounded'> - {!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> - )} + {auth?.company || + (!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 company_type='nonpkp' /> |
