From de5ef26bb1017540969f8847016193f7e1933ee1 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sun, 26 Mar 2023 15:10:59 +0700
Subject: transaction detail

---
 src/lib/auth/components/Menu.jsx | 47 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 src/lib/auth/components/Menu.jsx

(limited to 'src/lib/auth/components/Menu.jsx')

diff --git a/src/lib/auth/components/Menu.jsx b/src/lib/auth/components/Menu.jsx
new file mode 100644
index 00000000..3f2b2fb2
--- /dev/null
+++ b/src/lib/auth/components/Menu.jsx
@@ -0,0 +1,47 @@
+import Link from '@/core/components/elements/Link/Link'
+import { useRouter } from 'next/router'
+
+const Menu = () => {
+  const router = useRouter()
+
+  const routeStartWith = (route) => router.pathname.startsWith(route)
+
+  return (
+    <div className='grid grid-cols-1 border border-gray_r-6 rounded py-2 px-4'>
+      <div className='mt-4 mb-1 font-medium'>Menu</div>
+      <LinkItem href='/my/transactions' active={routeStartWith('/my/transaction')}>
+        Daftar Transaksi
+      </LinkItem>
+      <LinkItem href='/my/invoices' active={routeStartWith('/my/invoice')}>
+        Invoice & Faktur Pajak
+      </LinkItem>
+      <LinkItem href='/my/wishlist' active={routeStartWith('/my/wishlist')}>
+        Wishlist
+      </LinkItem>
+
+      <div className='mt-4 mb-1 font-medium'>Pusat Bantuan</div>
+      <LinkItem href='/'>Layanan Pelanggan</LinkItem>
+
+      <div className='mt-4 mb-1 font-medium'>Pengaturan Akun</div>
+      <LinkItem href='/my/address' active={routeStartWith('/my/address')}>
+        Daftar Alamat
+      </LinkItem>
+      <button type='button' className='text-gray_r-12/80 p-2 text-left'>
+        Keluar Akun
+      </button>
+    </div>
+  )
+}
+
+const LinkItem = ({ children, ...props }) => (
+  <Link
+    {...props}
+    className={`!text-gray_r-12/80 !font-normal p-2 rounded ${
+      props.active == true ? 'bg-gray_r-3' : ''
+    }`}
+  >
+    {children}
+  </Link>
+)
+
+export default Menu
-- 
cgit v1.2.3


From bc04e721d51e149709ab3cfaf5e77ef034511860 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 27 Mar 2023 10:17:49 +0700
Subject: invoice, invoice detail, address, create address, edit address,
 wishlist

---
 src/lib/auth/components/Menu.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/auth/components/Menu.jsx')

diff --git a/src/lib/auth/components/Menu.jsx b/src/lib/auth/components/Menu.jsx
index 3f2b2fb2..9a73609d 100644
--- a/src/lib/auth/components/Menu.jsx
+++ b/src/lib/auth/components/Menu.jsx
@@ -7,7 +7,7 @@ const Menu = () => {
   const routeStartWith = (route) => router.pathname.startsWith(route)
 
   return (
-    <div className='grid grid-cols-1 border border-gray_r-6 rounded py-2 px-4'>
+    <div className='grid grid-cols-1 bg-white border border-gray_r-6 rounded py-2 px-4'>
       <div className='mt-4 mb-1 font-medium'>Menu</div>
       <LinkItem href='/my/transactions' active={routeStartWith('/my/transaction')}>
         Daftar Transaksi
-- 
cgit v1.2.3

