From fa6879b95f9d8128b6bbed53a52b6b54dd3266e0 Mon Sep 17 00:00:00 2001
From: Linc2427 <ahmadmiqdad27@gmail.com>
Date: Wed, 16 Apr 2025 10:07:04 +0700
Subject: Disable NPWP input

---
 src/lib/auth/components/CompanyProfile.jsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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

diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 6d4da1d1..4692fef6 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -59,7 +59,11 @@ const CompanyProfile = () => {
   useEffect(() => {
     const loadProfile = async () => {
       const dataProfile = await addressApi({
-        id: auth?.company ? (auth.parentId ? auth.parentId : auth.partnerId) : auth.partnerId,
+        id: auth?.company
+          ? auth.parentId
+            ? auth.parentId
+            : auth.partnerId
+          : auth.partnerId,
       });
       setCompany_type(dataProfile?.companyType);
       setValue('name', dataProfile?.name);
@@ -311,9 +315,13 @@ const CompanyProfile = () => {
               <input
                 {...register('npwp')}
                 type='text'
+                disabled
                 className='form-input mt-3'
                 maxLength={16}
               />
+              <span className='text-xs opacity-60 text-red-500'>
+                *Untuk mengganti NPWP bisa menghubungi Sales
+              </span>
               <div className='text-caption-2 text-danger-500 mt-1'>
                 {errors.npwp?.message}
               </div>
-- 
cgit v1.2.3


From ba8a6b9b6dc731d66a0d9cef3e29c4d5153d2172 Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadkimpir@gmail.com>
Date: Thu, 17 Apr 2025 09:52:39 +0700
Subject: add text decoration for the a tag

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

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

diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 4692fef6..77cf536f 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -320,7 +320,7 @@ const CompanyProfile = () => {
                 maxLength={16}
               />
               <span className='text-xs opacity-60 text-red-500'>
-                *Untuk mengganti NPWP bisa menghubungi Sales
+                *Untuk mengganti NPWP bisa menghubungi kami <a href='https://wa.me/6281717181922' target='_blank' style={{ textDecoration: "underline" }}>disini.</a>
               </span>
               <div className='text-caption-2 text-danger-500 mt-1'>
                 {errors.npwp?.message}
-- 
cgit v1.2.3

