summaryrefslogtreecommitdiff
path: root/src/pages/my/profile.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/my/profile.jsx')
-rw-r--r--src/pages/my/profile.jsx13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 8a91ea17..72a1ee3c 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -2,15 +2,18 @@ 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 IsAuth from '@/lib/auth/components/IsAuth'
import PersonalProfile from '@/lib/auth/components/PersonalProfile'
export default function Profile() {
const auth = useAuth()
return (
- <AppLayout title='Akun Saya'>
- <PersonalProfile />
- <Divider />
- {auth?.parentId && <CompanyProfile />}
- </AppLayout>
+ <IsAuth>
+ <AppLayout title='Akun Saya'>
+ <PersonalProfile />
+ <Divider />
+ {auth?.parentId && <CompanyProfile />}
+ </AppLayout>
+ </IsAuth>
)
}