From 9622bff4d4902fcef81214236cc7ff035163e5e7 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 13 Nov 2024 16:46:14 +0700
Subject: <iman> pengajuan tempo

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 1 +
 1 file changed, 1 insertion(+)

(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 c0698b6e..83bf4a66 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -22,6 +22,7 @@ const NavbarUserDropdown = () => {
         <Link href='/my/transactions'>Daftar Transaksi</Link>
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
+        <Link href='/my/tempo'>Pembayaran Tempo</Link>
         <Link href='/my/wishlist'>Wishlist</Link>
         <Link href='/my/address'>Daftar Alamat</Link>
         {!atuh?.external && (
-- 
cgit v1.2.3


From 77f9843ad5072583cb1797d7ecf5ac80394bad3f Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 2 Dec 2024 09:31:44 +0700
Subject: <iman> pengajuan tempo

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 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 83bf4a66..b2abe80f 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -13,7 +13,7 @@ const NavbarUserDropdown = () => {
       router.push('/login');
     });
   };
-
+  console.log('atuh', atuh);
   return (
     <div className='navbar-user-dropdown-wrapper'>
       <div className='navbar-user-dropdown'>
@@ -22,7 +22,10 @@ const NavbarUserDropdown = () => {
         <Link href='/my/transactions'>Daftar Transaksi</Link>
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
-        <Link href='/my/tempo'>Pembayaran Tempo</Link>
+        {(atuh?.partnerTempo.toLowerCase().includes('tempo') ||
+          atuh.tempoProgres == 'review') && (
+          <Link href='/my/tempo'>Pembayaran Tempo</Link>
+        )}
         <Link href='/my/wishlist'>Wishlist</Link>
         <Link href='/my/address'>Daftar Alamat</Link>
         {!atuh?.external && (
-- 
cgit v1.2.3


From 9a49b8d84761781531cb417731cb9ef802f63541 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 4 Dec 2024 10:59:21 +0700
Subject: <iman> update pengajuan tempo

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 11 ++++++-----
 1 file changed, 6 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 b2abe80f..d19cf11d 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -13,7 +13,6 @@ const NavbarUserDropdown = () => {
       router.push('/login');
     });
   };
-  console.log('atuh', atuh);
   return (
     <div className='navbar-user-dropdown-wrapper'>
       <div className='navbar-user-dropdown'>
@@ -22,10 +21,12 @@ const NavbarUserDropdown = () => {
         <Link href='/my/transactions'>Daftar Transaksi</Link>
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
-        {(atuh?.partnerTempo.toLowerCase().includes('tempo') ||
-          atuh.tempoProgres == 'review') && (
-          <Link href='/my/tempo'>Pembayaran Tempo</Link>
-        )}
+        {atuh &&
+          (atuh.partnerTempo?.toLowerCase().includes('tempo') ||
+            atuh.tempoProgres === 'review') && (
+            <Link href='/my/tempo'>Pembayaran Tempo</Link>
+          )}
+
         <Link href='/my/wishlist'>Wishlist</Link>
         <Link href='/my/address'>Daftar Alamat</Link>
         {!atuh?.external && (
-- 
cgit v1.2.3


From 4745baa6981423d9a7c2311370ad7c853c33de7b Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 2 Jan 2025 10:43:05 +0700
Subject: <iman> update bug

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 5 +++--
 1 file changed, 3 insertions(+), 2 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 d19cf11d..83407bfd 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -22,8 +22,9 @@ const NavbarUserDropdown = () => {
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
         {atuh &&
-          (atuh.partnerTempo?.toLowerCase().includes('tempo') ||
-            atuh.tempoProgres === 'review') && (
+          (atuh.partnerTempo
+            ? atuh.partnerTempo?.toLowerCase().includes('tempo')
+            : '' || atuh.tempoProgres === 'review') && (
             <Link href='/my/tempo'>Pembayaran Tempo</Link>
           )}
 
-- 
cgit v1.2.3


From 6f4ecaa362c2333c59d08f775c13fa1c5bf5e13b Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 9 Jan 2025 08:53:25 +0700
Subject: <iman> update tempo

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 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 83407bfd..7ed269b8 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -22,9 +22,9 @@ const NavbarUserDropdown = () => {
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
         {atuh &&
-          (atuh.partnerTempo
-            ? atuh.partnerTempo?.toLowerCase().includes('tempo')
-            : '' || atuh.tempoProgres === 'review') && (
+          atuh.partnerTempo &&
+          (atuh.partnerTempo?.toLowerCase().includes('tempo') ||
+            atuh.tempoProgres === 'review') && (
             <Link href='/my/tempo'>Pembayaran Tempo</Link>
           )}
 
-- 
cgit v1.2.3


From fedaceac3e41741c198c94fd20917c9572fa7ec1 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 10 Jan 2025 15:26:44 +0700
Subject: <iman> update tempo page mobile view

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 4 +---
 1 file changed, 1 insertion(+), 3 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 7ed269b8..b2ad6309 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -7,7 +7,6 @@ import useAuth from '@/core/hooks/useAuth';
 const NavbarUserDropdown = () => {
   const router = useRouter();
   const atuh = useAuth();
-
   const logout = async () => {
     deleteAuth().then(() => {
       router.push('/login');
@@ -23,8 +22,7 @@ const NavbarUserDropdown = () => {
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
         {atuh &&
           atuh.partnerTempo &&
-          (atuh.partnerTempo?.toLowerCase().includes('tempo') ||
-            atuh.tempoProgres === 'review') && (
+          (atuh.partnerTempo || atuh.tempoProgres === 'review') && (
             <Link href='/my/tempo'>Pembayaran Tempo</Link>
           )}
 
-- 
cgit v1.2.3

