summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-05-14 09:27:26 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-05-14 09:27:26 +0700
commit29ecab270822500ead372d8d3e05c9281a514715 (patch)
treea32735f4b7fab774de6a2bbee9380f363c51bec2 /src/lib/auth/components
parentdd66804b05166ad6bb71bf54fe3374d9897fee86 (diff)
parent746a11b810ae9e8a974a76d0548297cd0faff9b5 (diff)
Merge branch 'new-release' into CR/form-merchant
Diffstat (limited to 'src/lib/auth/components')
-rw-r--r--src/lib/auth/components/CompanyProfile.jsx16
-rw-r--r--src/lib/auth/components/Menu.jsx1
2 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 410d6a23..d404ebe7 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.parentId ? auth.parentId : auth.parent_id,
+ id: auth?.company
+ ? auth.parentId
+ ? auth.parentId
+ : auth.partnerId
+ : auth.partnerId,
});
setCompany_type(dataProfile?.companyType);
setValue('name', dataProfile?.name);
@@ -311,9 +315,19 @@ 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 kami{' '}
+ <a
+ href='https://wa.me/6281717181922' target='_blank' rel='noreferrer'
+ style={{ textDecoration: 'underline' }}
+ >
+ disini.
+ </a>
+ </span>
<div className='text-caption-2 text-danger-500 mt-1'>
{errors.npwp?.message}
</div>
diff --git a/src/lib/auth/components/Menu.jsx b/src/lib/auth/components/Menu.jsx
index 4682dbab..df33314c 100644
--- a/src/lib/auth/components/Menu.jsx
+++ b/src/lib/auth/components/Menu.jsx
@@ -197,6 +197,7 @@ const Menu = () => {
<button
type='button'
className='text-gray_r-12/80 p-2 text-left hover:bg-gray_r-5 '
+ onClick={() => logout()}
>
<div className='flex gap-x-3 items-center'>
<ImageNext