summaryrefslogtreecommitdiff
path: root/src/pages/my/profile.jsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-27 10:49:45 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-27 10:49:45 +0700
commitffa261e6adef70a2845878cf93e6e492eb8cee62 (patch)
treec860ac8d127795ee813af59923305736596264c2 /src/pages/my/profile.jsx
parent14ad96a9d010790fe7a482035d6d88f36db660fe (diff)
footer
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>
)
}