From ed950b23d50f9b3993cfd2ac2386a5b3a68d5e57 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 17:03:28 +0700
Subject: fix

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

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
new file mode 100644
index 00000000..d3edaa3b
--- /dev/null
+++ b/src/pages/my/menu.jsx
@@ -0,0 +1,94 @@
+import Divider from "@/core/components/elements/Divider/Divider"
+import Link from "@/core/components/elements/Link/Link"
+import AppLayout from "@/core/components/layouts/AppLayout"
+import { ChevronRightIcon, UserIcon } from "@heroicons/react/24/solid"
+
+export default function Menu() {
+  return (
+    <AppLayout title="Menu Utama">
+      <Link href="/my/profile" className="p-4 flex items-center">
+        <div className="rounded-full p-3 bg-gray_r-6 text-gray_r-12/90">
+          <UserIcon className="w-5" />
+        </div>
+        <div className="ml-4">
+          <div className="font-semibold text-gray_r-12">Rafi Zadanly</div>
+          <div className="badge-solid-red mt-1">Akun Bisnis</div>
+        </div>
+        <div className="ml-auto !text-gray_r-12">
+          <ChevronRightIcon className="w-6" />
+        </div>
+      </Link>
+
+      <Divider />
+
+      <div className="flex flex-col gap-y-6 py-6">
+        <div>
+          <MenuHeader>
+            Aktivitas Pembelian
+          </MenuHeader>
+
+          <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
+            <LinkItem href="/my/transactions">
+              Daftar Transaksi
+            </LinkItem>
+            <LinkItem href="/">
+              Invoice & Faktur Pajak
+            </LinkItem>
+            <LinkItem href="/">
+              Wishlist
+            </LinkItem>
+          </div>
+        </div>
+
+        <div>
+          <MenuHeader>
+            Pusat Bantuan
+          </MenuHeader>
+
+          <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
+            <LinkItem href="/">
+              Customer Support
+            </LinkItem>
+            <LinkItem href="/">
+              F.A.Q
+            </LinkItem>
+          </div>
+        </div>
+
+        <div>
+          <MenuHeader>
+            Pengaturan Akun
+          </MenuHeader>
+
+          <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
+            <LinkItem href="/">
+              Daftar Alamat
+            </LinkItem>
+            <LinkItem href="/">
+              Ubah Password
+            </LinkItem>
+            <LinkItem href="/">
+              Keluar Akun
+            </LinkItem>
+          </div>
+        </div>
+      </div>
+    </AppLayout>
+  )
+}
+
+const MenuHeader = ({ children, ...props }) => (
+  <div {...props} className="font-medium px-4 flex">
+    { children }
+
+  </div>
+)
+
+const LinkItem = ({ children, ...props }) => (
+  <Link {...props} className="!text-gray_r-11 font-normal p-4 flex items-center">
+    { children }
+    <div className="ml-auto !text-gray_r-11">
+      <ChevronRightIcon className="w-5" />
+    </div>
+  </Link>
+)
\ No newline at end of file
-- 
cgit v1.2.3


From 3f2ff1475676ba47a841796e39e7d17d627e5356 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 14:46:24 +0700
Subject: fix

---
 src/pages/my/menu.jsx | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index d3edaa3b..69e4b8bb 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -1,9 +1,20 @@
 import Divider from "@/core/components/elements/Divider/Divider"
 import Link from "@/core/components/elements/Link/Link"
 import AppLayout from "@/core/components/layouts/AppLayout"
+import useAuth from "@/core/hooks/useAuth"
+import { deleteAuth } from "@/core/utils/auth"
 import { ChevronRightIcon, UserIcon } from "@heroicons/react/24/solid"
+import { useRouter } from "next/router"
 
 export default function Menu() {
+  const auth = useAuth()
+  const router = useRouter()
+
+  const logout = () => {
+    deleteAuth()
+    router.push('/login')  
+  }
+
   return (
     <AppLayout title="Menu Utama">
       <Link href="/my/profile" className="p-4 flex items-center">
@@ -11,8 +22,13 @@ export default function Menu() {
           <UserIcon className="w-5" />
         </div>
         <div className="ml-4">
-          <div className="font-semibold text-gray_r-12">Rafi Zadanly</div>
-          <div className="badge-solid-red mt-1">Akun Bisnis</div>
+          <div className="font-semibold text-gray_r-12">{ auth?.name }</div>
+          { auth?.company && (
+            <div className="badge-solid-red mt-1">Akun Bisnis</div>
+          ) }
+          { !auth?.company && (
+            <div className="badge-gray mt-1">Akun Individu</div>
+          ) }
         </div>
         <div className="ml-auto !text-gray_r-12">
           <ChevronRightIcon className="w-6" />
@@ -67,9 +83,9 @@ export default function Menu() {
             <LinkItem href="/">
               Ubah Password
             </LinkItem>
-            <LinkItem href="/">
+            <div onClick={logout} className="!text-gray_r-11 font-normal p-4 flex items-center">
               Keluar Akun
-            </LinkItem>
+            </div>
           </div>
         </div>
       </div>
-- 
cgit v1.2.3


From de7361718def0f6bb32294bb074841ba2c0a3ce6 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 16:25:35 +0700
Subject: fix

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

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 69e4b8bb..e2a11390 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -47,10 +47,10 @@ export default function Menu() {
             <LinkItem href="/my/transactions">
               Daftar Transaksi
             </LinkItem>
-            <LinkItem href="/">
+            <LinkItem href="/my/invoices">
               Invoice & Faktur Pajak
             </LinkItem>
-            <LinkItem href="/">
+            <LinkItem href="/my/wishlist">
               Wishlist
             </LinkItem>
           </div>
-- 
cgit v1.2.3


From 706088ffe9e13221207837bb658887645e76b3ed Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 21:59:24 +0700
Subject: fix

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

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index e2a11390..0bd6137e 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -101,7 +101,7 @@ const MenuHeader = ({ children, ...props }) => (
 )
 
 const LinkItem = ({ children, ...props }) => (
-  <Link {...props} className="!text-gray_r-11 font-normal p-4 flex items-center">
+  <Link {...props} className="!text-gray_r-11 !font-normal p-4 flex items-center">
     { children }
     <div className="ml-auto !text-gray_r-11">
       <ChevronRightIcon className="w-5" />
-- 
cgit v1.2.3


From 98c8fc56db91664b98a50e9113787b56fe785b9e Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 22:33:32 +0700
Subject: fix

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

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 0bd6137e..2ae00722 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -77,7 +77,7 @@ export default function Menu() {
           </MenuHeader>
 
           <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
-            <LinkItem href="/">
+            <LinkItem href="/my/address">
               Daftar Alamat
             </LinkItem>
             <LinkItem href="/">
-- 
cgit v1.2.3


From 82954ee3cfa38f21f677b9aa2c1c6c3c88004050 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 08:35:02 +0700
Subject: fix

---
 src/pages/my/menu.jsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index e2a11390..67ea1171 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -18,7 +18,7 @@ export default function Menu() {
   return (
     <AppLayout title="Menu Utama">
       <Link href="/my/profile" className="p-4 flex items-center">
-        <div className="rounded-full p-3 bg-gray_r-6 text-gray_r-12/90">
+        <div className="rounded-full p-3 bg-gray_r-6 text-gray_r-12/80">
           <UserIcon className="w-5" />
         </div>
         <div className="ml-4">
@@ -80,9 +80,6 @@ export default function Menu() {
             <LinkItem href="/">
               Daftar Alamat
             </LinkItem>
-            <LinkItem href="/">
-              Ubah Password
-            </LinkItem>
             <div onClick={logout} className="!text-gray_r-11 font-normal p-4 flex items-center">
               Keluar Akun
             </div>
-- 
cgit v1.2.3


From 3c559031623649a67825ff47f34512f0eb946861 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 10:14:32 +0700
Subject: fix

---
 src/pages/my/menu.jsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 46a0e4b3..3620fc36 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -80,9 +80,10 @@ export default function Menu() {
             <LinkItem href="/my/address">
               Daftar Alamat
             </LinkItem>
-            <div onClick={logout} className="!text-gray_r-11 font-normal p-4 flex items-center">
-              Keluar Akun
-            </div>
+          </div>
+
+          <div onClick={logout} className="p-4 mt-2">
+            <button className="w-full btn-red">Keluar Akun</button>
           </div>
         </div>
       </div>
-- 
cgit v1.2.3


From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 11:03:34 +0700
Subject: prettier

---
 src/pages/my/menu.jsx | 103 ++++++++++++++++++++------------------------------
 1 file changed, 40 insertions(+), 63 deletions(-)

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 3620fc36..0edc98ae 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -1,10 +1,10 @@
-import Divider from "@/core/components/elements/Divider/Divider"
-import Link from "@/core/components/elements/Link/Link"
-import AppLayout from "@/core/components/layouts/AppLayout"
-import useAuth from "@/core/hooks/useAuth"
-import { deleteAuth } from "@/core/utils/auth"
-import { ChevronRightIcon, UserIcon } from "@heroicons/react/24/solid"
-import { useRouter } from "next/router"
+import Divider from '@/core/components/elements/Divider/Divider'
+import Link from '@/core/components/elements/Link/Link'
+import AppLayout from '@/core/components/layouts/AppLayout'
+import useAuth from '@/core/hooks/useAuth'
+import { deleteAuth } from '@/core/utils/auth'
+import { ChevronRightIcon, UserIcon } from '@heroicons/react/24/solid'
+import { useRouter } from 'next/router'
 
 export default function Menu() {
   const auth = useAuth()
@@ -12,78 +12,56 @@ export default function Menu() {
 
   const logout = () => {
     deleteAuth()
-    router.push('/login')  
+    router.push('/login')
   }
 
   return (
-    <AppLayout title="Menu Utama">
-      <Link href="/my/profile" className="p-4 flex items-center">
-        <div className="rounded-full p-3 bg-gray_r-6 text-gray_r-12/80">
-          <UserIcon className="w-5" />
+    <AppLayout title='Menu Utama'>
+      <Link href='/my/profile' className='p-4 flex items-center'>
+        <div className='rounded-full p-3 bg-gray_r-6 text-gray_r-12/80'>
+          <UserIcon className='w-5' />
         </div>
-        <div className="ml-4">
-          <div className="font-semibold text-gray_r-12">{ auth?.name }</div>
-          { auth?.company && (
-            <div className="badge-solid-red mt-1">Akun Bisnis</div>
-          ) }
-          { !auth?.company && (
-            <div className="badge-gray mt-1">Akun Individu</div>
-          ) }
+        <div className='ml-4'>
+          <div className='font-semibold text-gray_r-12'>{auth?.name}</div>
+          {auth?.company && <div className='badge-solid-red mt-1'>Akun Bisnis</div>}
+          {!auth?.company && <div className='badge-gray mt-1'>Akun Individu</div>}
         </div>
-        <div className="ml-auto !text-gray_r-12">
-          <ChevronRightIcon className="w-6" />
+        <div className='ml-auto !text-gray_r-12'>
+          <ChevronRightIcon className='w-6' />
         </div>
       </Link>
 
       <Divider />
 
-      <div className="flex flex-col gap-y-6 py-6">
+      <div className='flex flex-col gap-y-6 py-6'>
         <div>
-          <MenuHeader>
-            Aktivitas Pembelian
-          </MenuHeader>
+          <MenuHeader>Aktivitas Pembelian</MenuHeader>
 
-          <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
-            <LinkItem href="/my/transactions">
-              Daftar Transaksi
-            </LinkItem>
-            <LinkItem href="/my/invoices">
-              Invoice & Faktur Pajak
-            </LinkItem>
-            <LinkItem href="/my/wishlist">
-              Wishlist
-            </LinkItem>
+          <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
+            <LinkItem href='/my/transactions'>Daftar Transaksi</LinkItem>
+            <LinkItem href='/my/invoices'>Invoice & Faktur Pajak</LinkItem>
+            <LinkItem href='/my/wishlist'>Wishlist</LinkItem>
           </div>
         </div>
 
         <div>
-          <MenuHeader>
-            Pusat Bantuan
-          </MenuHeader>
+          <MenuHeader>Pusat Bantuan</MenuHeader>
 
-          <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
-            <LinkItem href="/">
-              Customer Support
-            </LinkItem>
-            <LinkItem href="/">
-              F.A.Q
-            </LinkItem>
+          <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
+            <LinkItem href='/'>Customer Support</LinkItem>
+            <LinkItem href='/'>F.A.Q</LinkItem>
           </div>
         </div>
 
         <div>
-          <MenuHeader>
-            Pengaturan Akun
-          </MenuHeader>
+          <MenuHeader>Pengaturan Akun</MenuHeader>
 
-          <div className="divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4">
-            <LinkItem href="/my/address">
-              Daftar Alamat
-            </LinkItem>
+          <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
+            <LinkItem href='/my/address'>Daftar Alamat</LinkItem>
           </div>
 
-          <div onClick={logout} className="p-4 mt-2">
-            <button className="w-full btn-red">Keluar Akun</button>
+          <div onClick={logout} className='p-4 mt-2'>
+            <button className='w-full btn-red'>Keluar Akun</button>
           </div>
         </div>
       </div>
@@ -92,17 +70,16 @@ export default function Menu() {
 }
 
 const MenuHeader = ({ children, ...props }) => (
-  <div {...props} className="font-medium px-4 flex">
-    { children }
-
+  <div {...props} className='font-medium px-4 flex'>
+    {children}
   </div>
 )
 
 const LinkItem = ({ children, ...props }) => (
-  <Link {...props} className="!text-gray_r-11 !font-normal p-4 flex items-center">
-    { children }
-    <div className="ml-auto !text-gray_r-11">
-      <ChevronRightIcon className="w-5" />
+  <Link {...props} className='!text-gray_r-11 !font-normal p-4 flex items-center'>
+    {children}
+    <div className='ml-auto !text-gray_r-11'>
+      <ChevronRightIcon className='w-5' />
     </div>
   </Link>
-)
\ No newline at end of file
+)
-- 
cgit v1.2.3


From ac3fdf7be9982e65d8f83a20bc487f8dd62e3bfc Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 23:36:47 +0700
Subject: fix

---
 src/pages/my/menu.jsx | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 0edc98ae..576919ae 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -17,7 +17,10 @@ export default function Menu() {
 
   return (
     <AppLayout title='Menu Utama'>
-      <Link href='/my/profile' className='p-4 flex items-center'>
+      <Link
+        href='/my/profile'
+        className='p-4 flex items-center'
+      >
         <div className='rounded-full p-3 bg-gray_r-6 text-gray_r-12/80'>
           <UserIcon className='w-5' />
         </div>
@@ -60,7 +63,10 @@ export default function Menu() {
             <LinkItem href='/my/address'>Daftar Alamat</LinkItem>
           </div>
 
-          <div onClick={logout} className='p-4 mt-2'>
+          <div
+            onClick={logout}
+            className='p-4 mt-2'
+          >
             <button className='w-full btn-red'>Keluar Akun</button>
           </div>
         </div>
@@ -70,13 +76,19 @@ export default function Menu() {
 }
 
 const MenuHeader = ({ children, ...props }) => (
-  <div {...props} className='font-medium px-4 flex'>
+  <div
+    {...props}
+    className='font-medium px-4 flex'
+  >
     {children}
   </div>
 )
 
 const LinkItem = ({ children, ...props }) => (
-  <Link {...props} className='!text-gray_r-11 !font-normal p-4 flex items-center'>
+  <Link
+    {...props}
+    className='!text-gray_r-11 !font-normal p-4 flex items-center'
+  >
     {children}
     <div className='ml-auto !text-gray_r-11'>
       <ChevronRightIcon className='w-5' />
-- 
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/menu.jsx | 91 ++++++++++++++++++++++++++-------------------------
 1 file changed, 47 insertions(+), 44 deletions(-)

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 576919ae..40c84668 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -3,6 +3,7 @@ import Link from '@/core/components/elements/Link/Link'
 import AppLayout from '@/core/components/layouts/AppLayout'
 import useAuth from '@/core/hooks/useAuth'
 import { deleteAuth } from '@/core/utils/auth'
+import IsAuth from '@/lib/auth/components/IsAuth'
 import { ChevronRightIcon, UserIcon } from '@heroicons/react/24/solid'
 import { useRouter } from 'next/router'
 
@@ -16,62 +17,64 @@ export default function Menu() {
   }
 
   return (
-    <AppLayout title='Menu Utama'>
-      <Link
-        href='/my/profile'
-        className='p-4 flex items-center'
-      >
-        <div className='rounded-full p-3 bg-gray_r-6 text-gray_r-12/80'>
-          <UserIcon className='w-5' />
-        </div>
-        <div className='ml-4'>
-          <div className='font-semibold text-gray_r-12'>{auth?.name}</div>
-          {auth?.company && <div className='badge-solid-red mt-1'>Akun Bisnis</div>}
-          {!auth?.company && <div className='badge-gray mt-1'>Akun Individu</div>}
-        </div>
-        <div className='ml-auto !text-gray_r-12'>
-          <ChevronRightIcon className='w-6' />
-        </div>
-      </Link>
+    <IsAuth>
+      <AppLayout title='Menu Utama'>
+        <Link
+          href='/my/profile'
+          className='p-4 flex items-center'
+        >
+          <div className='rounded-full p-3 bg-gray_r-6 text-gray_r-12/80'>
+            <UserIcon className='w-5' />
+          </div>
+          <div className='ml-4'>
+            <div className='font-semibold text-gray_r-12'>{auth?.name}</div>
+            {auth?.company && <div className='badge-solid-red mt-1'>Akun Bisnis</div>}
+            {!auth?.company && <div className='badge-gray mt-1'>Akun Individu</div>}
+          </div>
+          <div className='ml-auto !text-gray_r-12'>
+            <ChevronRightIcon className='w-6' />
+          </div>
+        </Link>
 
-      <Divider />
+        <Divider />
 
-      <div className='flex flex-col gap-y-6 py-6'>
-        <div>
-          <MenuHeader>Aktivitas Pembelian</MenuHeader>
+        <div className='flex flex-col gap-y-6 py-6'>
+          <div>
+            <MenuHeader>Aktivitas Pembelian</MenuHeader>
 
-          <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
-            <LinkItem href='/my/transactions'>Daftar Transaksi</LinkItem>
-            <LinkItem href='/my/invoices'>Invoice & Faktur Pajak</LinkItem>
-            <LinkItem href='/my/wishlist'>Wishlist</LinkItem>
+            <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
+              <LinkItem href='/my/transactions'>Daftar Transaksi</LinkItem>
+              <LinkItem href='/my/invoices'>Invoice & Faktur Pajak</LinkItem>
+              <LinkItem href='/my/wishlist'>Wishlist</LinkItem>
+            </div>
           </div>
-        </div>
 
-        <div>
-          <MenuHeader>Pusat Bantuan</MenuHeader>
+          <div>
+            <MenuHeader>Pusat Bantuan</MenuHeader>
 
-          <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
-            <LinkItem href='/'>Customer Support</LinkItem>
-            <LinkItem href='/'>F.A.Q</LinkItem>
+            <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
+              <LinkItem href='/'>Customer Support</LinkItem>
+              <LinkItem href='/'>F.A.Q</LinkItem>
+            </div>
           </div>
-        </div>
 
-        <div>
-          <MenuHeader>Pengaturan Akun</MenuHeader>
+          <div>
+            <MenuHeader>Pengaturan Akun</MenuHeader>
 
-          <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
-            <LinkItem href='/my/address'>Daftar Alamat</LinkItem>
-          </div>
+            <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
+              <LinkItem href='/my/address'>Daftar Alamat</LinkItem>
+            </div>
 
-          <div
-            onClick={logout}
-            className='p-4 mt-2'
-          >
-            <button className='w-full btn-red'>Keluar Akun</button>
+            <div
+              onClick={logout}
+              className='p-4 mt-2'
+            >
+              <button className='w-full btn-red'>Keluar Akun</button>
+            </div>
           </div>
         </div>
-      </div>
-    </AppLayout>
+      </AppLayout>
+    </IsAuth>
   )
 }
 
-- 
cgit v1.2.3


From a1b9b647a6c4bda1f5db63879639d44543f9557e Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 1 Mar 2023 13:53:31 +0700
Subject: fix layout

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

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

diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx
index 40c84668..b9fd30ee 100644
--- a/src/pages/my/menu.jsx
+++ b/src/pages/my/menu.jsx
@@ -54,7 +54,7 @@ export default function Menu() {
 
             <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'>
               <LinkItem href='/'>Customer Support</LinkItem>
-              <LinkItem href='/'>F.A.Q</LinkItem>
+              <LinkItem href='/faqs'>F.A.Q</LinkItem>
             </div>
           </div>
 
@@ -90,7 +90,7 @@ const MenuHeader = ({ children, ...props }) => (
 const LinkItem = ({ children, ...props }) => (
   <Link
     {...props}
-    className='!text-gray_r-11 !font-normal p-4 flex items-center'
+    className='!text-gray_r-12/70 !font-normal p-4 flex items-center'
   >
     {children}
     <div className='ml-auto !text-gray_r-11'>
-- 
cgit v1.2.3

