From bc8e76f00eaa74eb0cc51b79662a53ef34a3ed67 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 24 Mar 2023 17:05:47 +0700
Subject: -

---
 .../components/elements/Navbar/NavbarUserDropdown.jsx  | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

(limited to 'src/core/components/elements/Navbar/NavbarUserDropdown.jsx')

diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
index b735c13f..c08d81ce 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -1,17 +1,25 @@
 import { deleteAuth } from '@/core/utils/auth'
 import Link from '../Link/Link'
+import { useRouter } from 'next/router'
 
 const NavbarUserDropdown = () => {
+  const router = useRouter()
+
+  const logout = () => {
+    deleteAuth()
+    router.push('/login')
+  }
+
   return (
     <div className='navbar-user-dropdown-wrapper'>
       <div className='navbar-user-dropdown'>
-        <Link href='/'>Daftar Transaksi</Link>
-        <Link href='/'>Invoice & Faktur Pajak</Link>
-        <Link href='/'>Wishlist</Link>
+        <Link href='/my/transactions'>Daftar Transaksi</Link>
+        <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
+        <Link href='/my/wishlist'>Wishlist</Link>
         <Link href='/'>Pengaturan Akun</Link>
-        <Link href='/login' onClick={deleteAuth}>
+        <button type='button' onClick={logout}>
           Keluar Akun
-        </Link>
+        </button>
       </div>
     </div>
   )
-- 
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/core/components/elements/Navbar/NavbarUserDropdown.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Navbar/NavbarUserDropdown.jsx')

diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
index c08d81ce..1d2429a7 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -16,7 +16,7 @@ const NavbarUserDropdown = () => {
         <Link href='/my/transactions'>Daftar Transaksi</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
         <Link href='/my/wishlist'>Wishlist</Link>
-        <Link href='/'>Pengaturan Akun</Link>
+        <Link href='/my/address'>Daftar Alamat</Link>
         <button type='button' onClick={logout}>
           Keluar Akun
         </button>
-- 
cgit v1.2.3

