From 321e0c09be4b26d72b470407217262d10c88089d Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 22:57:48 +0700
Subject: fix

---
 src/pages/my/profile.jsx | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 src/pages/my/profile.jsx

(limited to 'src/pages/my/profile.jsx')

diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
new file mode 100644
index 00000000..f69d4303
--- /dev/null
+++ b/src/pages/my/profile.jsx
@@ -0,0 +1,10 @@
+import AppLayout from '@/core/components/layouts/AppLayout'
+import PersonalProfile from '@/lib/auth/components/PersonalProfile'
+
+export default function Profile() {
+  return (
+    <AppLayout title='Akun Saya'>
+      <PersonalProfile />
+    </AppLayout>
+  )
+}
-- 
cgit v1.2.3


From 0de0fda98dc35bd6503f1a45a52878b154a94c75 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 23 Feb 2023 10:52:40 +0700
Subject: fox

---
 src/pages/my/profile.jsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/pages/my/profile.jsx')

diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index f69d4303..f8d4c3de 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -1,10 +1,14 @@
+import Divider from '@/core/components/elements/Divider/Divider'
 import AppLayout from '@/core/components/layouts/AppLayout'
+import CompanyProfile from '@/lib/auth/components/CompanyProfile'
 import PersonalProfile from '@/lib/auth/components/PersonalProfile'
 
 export default function Profile() {
   return (
     <AppLayout title='Akun Saya'>
       <PersonalProfile />
+      <Divider />
+      <CompanyProfile />
     </AppLayout>
   )
 }
-- 
cgit v1.2.3


From 70d7b4cfad767be2d066cc66cf13b3e06e860f73 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 23 Feb 2023 11:22:45 +0700
Subject: fix

---
 src/pages/my/profile.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/pages/my/profile.jsx')

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>
   )
 }
-- 
cgit v1.2.3


From ccf4174e7e2e8a3f4cc35f243695f900f2172bb4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 23 Feb 2023 13:19:17 +0700
Subject: fixc

---
 src/pages/my/profile.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/pages/my/profile.jsx')

diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 85361f1e..8a91ea17 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -10,7 +10,7 @@ export default function Profile() {
     <AppLayout title='Akun Saya'>
       <PersonalProfile />
       <Divider />
-      { auth?.parentId && <CompanyProfile />}
+      {auth?.parentId && <CompanyProfile />}
     </AppLayout>
   )
 }
-- 
cgit v1.2.3


From ffa261e6adef70a2845878cf93e6e492eb8cee62 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 27 Feb 2023 10:49:45 +0700
Subject: footer

---
 src/pages/my/profile.jsx | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

(limited to 'src/pages/my/profile.jsx')

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>
   )
 }
-- 
cgit v1.2.3

