summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-23 11:22:45 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-23 11:22:45 +0700
commit70d7b4cfad767be2d066cc66cf13b3e06e860f73 (patch)
tree2d23c93e9e1a054826da932aefdcd04db00d58b5 /src/pages
parent649f1a39cef2bf0d44dacd981747df29798d46d2 (diff)
fix
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/my/profile.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index f8d4c3de..85361f1e 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -1,14 +1,16 @@
import Divider from '@/core/components/elements/Divider/Divider'
import AppLayout from '@/core/components/layouts/AppLayout'
+import useAuth from '@/core/hooks/useAuth'
import CompanyProfile from '@/lib/auth/components/CompanyProfile'
import PersonalProfile from '@/lib/auth/components/PersonalProfile'
export default function Profile() {
+ const auth = useAuth()
return (
<AppLayout title='Akun Saya'>
<PersonalProfile />
<Divider />
- <CompanyProfile />
+ { auth?.parentId && <CompanyProfile />}
</AppLayout>
)
}