diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-23 11:22:45 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-23 11:22:45 +0700 |
| commit | 70d7b4cfad767be2d066cc66cf13b3e06e860f73 (patch) | |
| tree | 2d23c93e9e1a054826da932aefdcd04db00d58b5 | |
| parent | 649f1a39cef2bf0d44dacd981747df29798d46d2 (diff) | |
fix
| -rw-r--r-- | src/pages/my/profile.jsx | 4 |
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> ) } |
