summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
authorLinc2427 <ahmadmiqdad27@gmail.com>2025-04-16 10:07:04 +0700
committerLinc2427 <ahmadmiqdad27@gmail.com>2025-04-16 10:07:04 +0700
commitfa6879b95f9d8128b6bbed53a52b6b54dd3266e0 (patch)
treed59212a0443bda987e58e06aa1dd167035343122 /src/lib/auth/components
parentf7dc0ddd0a90e9be93b68fe5f92aeabf0b2ed11d (diff)
Disable NPWP input
Diffstat (limited to 'src/lib/auth/components')
-rw-r--r--src/lib/auth/components/CompanyProfile.jsx10
1 files changed, 9 insertions, 1 deletions
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>