diff options
| -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> ) } |
