summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-02-04 15:19:14 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-02-04 15:19:14 +0700
commit5187f40005dd2e391ae601c11886b539dffe4dd7 (patch)
tree90a372c456da06106cd92080feeb4a062f021e27
parent8efe9fb6dd906431dcaed1818aae07692aeaa094 (diff)
<iman> update mobile
-rw-r--r--src/pages/my/profile.jsx25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 77c108cb..54e9024a 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -71,18 +71,19 @@ 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>
- )}
+ {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' />