From dbc533f88854555af8f1ba031b1640836c903183 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 1 Oct 2024 09:23:29 +0700
Subject: <iman> update badge click to my profile

---
 src/lib/auth/components/Menu.jsx | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)

(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 8eaa769b..7b766968 100644
--- a/src/lib/auth/components/Menu.jsx
+++ b/src/lib/auth/components/Menu.jsx
@@ -28,9 +28,13 @@ const Menu = () => {
         <div className='relative group'>
           {auth?.company && !(ubahAkun === 'pending') && (
             <>
-              <div className='badge-solid-red mt-1 p-2 flex flex-row items-center gap-x-2'>
-                <p>Akun Bisnis</p> <InfoIcon size={14} />
-              </div>
+              <Link
+                href='/my/profile'
+                className='badge-solid-red mt-1 p-2 flex flex-row items-center gap-x-2'
+              >
+                <p className='text-white'>Akun Bisnis</p>{' '}
+                <InfoIcon size={14} color='white' />
+              </Link>
               <div className='absolute bottom-full transform -translate-x-1/2 mb-2 hidden  group-hover:block bg-gray-700 text-white text-xs rounded py-1 px-2 w-72 text-justify left-36'>
                 Anda terdaftar sebagai akun bisnis, segala bentuk transaksi anda
                 untuk perusahaan yang sudah anda daftarkan di Indoteknik.com
@@ -39,10 +43,13 @@ const Menu = () => {
           )}
           {ubahAkun === 'pending' && (
             <>
-              <div className='badge-yellow mt-1 p-2 flex flex-row items-center gap-x-2'>
-                <p>Review</p>
-                <InfoIcon size={14} />
-              </div>
+              <Link
+                href='/my/profile'
+                className='badge-yellow mt-1 p-2 flex flex-row items-center gap-x-2'
+              >
+                <p className='text-warning-900'>Review</p>
+                <InfoIcon size={14} className='text-warning-900' />
+              </Link>
               <div className='absolute bottom-full transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded py-1 px-2 w-72 text-justify left-36'>
                 Proses perubahan akun anda sedang kami review, mohon menunggu
                 hingga 2x24 jam.
@@ -51,10 +58,13 @@ const Menu = () => {
           )}
           {!auth?.company && !(ubahAkun === 'pending') && (
             <>
-              <div className='badge-gray mt-1 p-2 flex flex-row items-center gap-x-2'>
-                <p>Akun Individu</p>
-                <InfoIcon size={14} />
-              </div>
+              <Link
+                href='/my/profile'
+                className='badge-gray mt-1 p-2 flex flex-row items-center gap-x-2'
+              >
+                <p className='text-gray_r-10'>Akun Individu</p>
+                <InfoIcon size={14} className='text-gray_r-10' />
+              </Link>
               <div className='absolute bottom-full left-36 transform -translate-x-1/2 mb-3 w-72 text-justify hidden group-hover:block bg-gray-700 text-white text-xs rounded py-1 px-2'>
                 <p className='whitespace-pre-wrap break-words'>
                   Anda terdaftar sebagai akun individu, Segala bentuk transaksi
-- 
cgit v1.2.3

