Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
C
ctas-box
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fachri
ctas-box
Commits
d96c2477
Commit
d96c2477
authored
Oct 20, 2025
by
Rais Aryaguna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix eslint
parent
71923273
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
88 additions
and
90 deletions
+88
-90
src/sections/bupot-21-26/DialogPenandatangan.tsx
src/sections/bupot-21-26/DialogPenandatangan.tsx
+4
-4
src/sections/bupot-unifikasi/bupot-digunggung/components/rekamDigunggung/Identitas.tsx
...bupot-digunggung/components/rekamDigunggung/Identitas.tsx
+11
-11
src/sections/bupot-unifikasi/bupot-dn/components/dialog/ModalCetakPdfDn.tsx
...-unifikasi/bupot-dn/components/dialog/ModalCetakPdfDn.tsx
+1
-1
src/sections/bupot-unifikasi/bupot-dn/components/rekamDn/PphDipotong.tsx
...pot-unifikasi/bupot-dn/components/rekamDn/PphDipotong.tsx
+1
-0
src/sections/bupot-unifikasi/bupot-dn/view/dn-list-view.tsx
src/sections/bupot-unifikasi/bupot-dn/view/dn-list-view.tsx
+5
-6
src/sections/bupot-unifikasi/bupot-dokumen-dipersamakan/view/dokumenDipersamakanRekamView.tsx
...okumen-dipersamakan/view/dokumenDipersamakanRekamView.tsx
+50
-53
src/sections/bupot-unifikasi/bupot-ssp/components/rekamSsp/Identitas.tsx
...pot-unifikasi/bupot-ssp/components/rekamSsp/Identitas.tsx
+11
-11
src/sections/bupot-unifikasi/bupot-ssp/view/ssp-list-view.tsx
...sections/bupot-unifikasi/bupot-ssp/view/ssp-list-view.tsx
+2
-2
src/sections/dashboard/utils/api.tsx
src/sections/dashboard/utils/api.tsx
+2
-2
src/shared/hooks/useDialogProgressBar.tsx
src/shared/hooks/useDialogProgressBar.tsx
+1
-0
No files found.
src/sections/bupot-21-26/DialogPenandatangan.tsx
View file @
d96c2477
import
{
Close
}
from
'
@mui/icons-material
'
;
import
{
Close
}
from
'
@mui/icons-material
'
;
import
{
Dialog
,
DialogContent
,
DialogTitle
,
IconButton
,
Typography
}
from
'
@mui/material
'
;
import
{
Dialog
,
DialogContent
,
DialogTitle
,
IconButton
,
Typography
}
from
'
@mui/material
'
;
import
{
useState
}
from
'
react
'
;
//
import { useState } from 'react';
import
{
useForm
}
from
'
react-hook-form
'
;
import
{
useForm
}
from
'
react-hook-form
'
;
import
{
Field
}
from
'
src/components/hook-form
'
;
import
{
Field
}
from
'
src/components/hook-form
'
;
import
{
useAppSelector
}
from
'
src/store
'
;
import
{
useAppSelector
}
from
'
src/store
'
;
...
@@ -24,13 +24,13 @@ export default function DialogPenandatangan({
...
@@ -24,13 +24,13 @@ export default function DialogPenandatangan({
onClose
,
onClose
,
title
=
'
Penandatangan
'
,
title
=
'
Penandatangan
'
,
}:
DialogPenandatanganProps
)
{
}:
DialogPenandatanganProps
)
{
const
penandatanganOptions
=
useAppSelector
((
state
)
=>
state
.
user
.
data
.
signer_npwp
);
const
penandatanganOptions
=
useAppSelector
((
state
:
any
)
=>
state
.
user
.
data
.
signer_npwp
);
const
form
=
useForm
({
const
form
=
useForm
({
mode
:
'
all
'
,
mode
:
'
all
'
,
});
});
const
[
isCheckedAgreement
,
setIsCheckedAgreement
]
=
useState
(
false
);
//
const [isCheckedAgreement, setIsCheckedAgreement] = useState(false);
const
handleClose
=
()
=>
{
const
handleClose
=
()
=>
{
form
.
reset
();
form
.
reset
();
...
@@ -65,7 +65,7 @@ export default function DialogPenandatangan({
...
@@ -65,7 +65,7 @@ export default function DialogPenandatangan({
<
IconButton
<
IconButton
aria
-
label=
"close"
aria
-
label=
"close"
onClick=
{
handleClose
}
onClick=
{
handleClose
}
sx=
{
(
theme
)
=>
({
sx=
{
(
theme
:
any
)
=>
({
position
:
'
absolute
'
,
position
:
'
absolute
'
,
right
:
8
,
right
:
8
,
top
:
8
,
top
:
8
,
...
...
src/sections/bupot-unifikasi/bupot-digunggung/components/rekamDigunggung/Identitas.tsx
View file @
d96c2477
import
Grid
from
'
@mui/material/Grid
'
;
import
Grid
from
'
@mui/material/Grid
'
;
import
{
useState
}
from
'
react
'
;
import
{
useState
}
from
'
react
'
;
import
{
useFormContext
}
from
'
react-hook-form
'
;
import
{
useFormContext
}
from
'
react-hook-form
'
;
import
{
useParams
}
from
'
react-router
'
;
//
import { useParams } from 'react-router';
import
{
Field
}
from
'
src/components/hook-form
'
;
import
{
Field
}
from
'
src/components/hook-form
'
;
type
IdentitasProps
=
{
type
IdentitasProps
=
{
...
@@ -11,7 +11,7 @@ type IdentitasProps = {
...
@@ -11,7 +11,7 @@ type IdentitasProps = {
};
};
const
Identitas
=
({
isPengganti
}:
IdentitasProps
)
=>
{
const
Identitas
=
({
isPengganti
}:
IdentitasProps
)
=>
{
const
{
dnId
}
=
useParams
();
//
const { dnId } = useParams();
const
{
setValue
}
=
useFormContext
();
const
{
setValue
}
=
useFormContext
();
const
[
jumlahKeterangan
,
setJumlahKeterangan
]
=
useState
<
number
>
(
0
);
const
[
jumlahKeterangan
,
setJumlahKeterangan
]
=
useState
<
number
>
(
0
);
...
...
src/sections/bupot-unifikasi/bupot-dn/components/dialog/ModalCetakPdfDn.tsx
View file @
d96c2477
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
useEffect
,
useState
}
from
'
react
'
;
import
{
enqueueSnackbar
}
from
'
notistack
'
;
import
{
enqueueSnackbar
}
from
'
notistack
'
;
import
DialogUmum
from
'
src/shared/components/dialog/DialogUmum
'
;
import
DialogUmum
from
'
src/shared/components/dialog/DialogUmum
'
;
import
DialogContent
from
'
@mui/material/DialogContent
'
;
import
DialogContent
from
'
@mui/material/DialogContent
'
;
...
...
src/sections/bupot-unifikasi/bupot-dn/components/rekamDn/PphDipotong.tsx
View file @
d96c2477
/* eslint-disable react-hooks/exhaustive-deps */
// import Divider from '@mui/material/Divider';
// import Divider from '@mui/material/Divider';
// import Grid from '@mui/material/Grid';
// import Grid from '@mui/material/Grid';
// import MenuItem from '@mui/material/MenuItem';
// import MenuItem from '@mui/material/MenuItem';
...
...
src/sections/bupot-unifikasi/bupot-dn/view/dn-list-view.tsx
View file @
d96c2477
...
@@ -3,7 +3,7 @@ import { CustomBreadcrumbs } from 'src/components/custom-breadcrumbs';
...
@@ -3,7 +3,7 @@ import { CustomBreadcrumbs } from 'src/components/custom-breadcrumbs';
import
{
DashboardContent
}
from
'
src/layouts/dashboard
'
;
import
{
DashboardContent
}
from
'
src/layouts/dashboard
'
;
import
{
RouterLink
}
from
'
src/routes/components
'
;
import
{
RouterLink
}
from
'
src/routes/components
'
;
import
{
paths
}
from
'
src/routes/paths
'
;
import
{
paths
}
from
'
src/routes/paths
'
;
import
React
,
{
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
,
startTransition
}
from
'
react
'
;
import
{
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
,
startTransition
}
from
'
react
'
;
import
{
useNavigate
}
from
'
react-router
'
;
import
{
useNavigate
}
from
'
react-router
'
;
import
type
{
import
type
{
GridColDef
,
GridColDef
,
...
@@ -12,11 +12,9 @@ import type {
...
@@ -12,11 +12,9 @@ import type {
GridRowSelectionModel
,
GridRowSelectionModel
,
GridSortModel
,
GridSortModel
,
GridToolbarProps
,
GridToolbarProps
,
GridPaginationModel
}
from
'
@mui/x-data-grid-premium
'
;
GridPaginationModel
,
import
{
DataGridPremium
,
useGridApiRef
}
from
'
@mui/x-data-grid-premium
'
;
}
from
'
@mui/x-data-grid-premium
'
;
import
{
DataGridPremium
,
useGridApiRef
}
from
'
@mui/x-data-grid-premium
'
;
import
{
unstable_batchedUpdates
}
from
'
react-dom
'
;
import
{
unstable_batchedUpdates
}
from
'
react-dom
'
;
import
{
import
{
...
@@ -105,7 +103,7 @@ export function DnListView() {
...
@@ -105,7 +103,7 @@ export function DnListView() {
const
[
selectionVersion
,
setSelectionVersion
]
=
useState
(
0
);
const
[
selectionVersion
,
setSelectionVersion
]
=
useState
(
0
);
const
[
kodeObjekPajaks
,
setKodeObjekPajaks
]
=
useState
<
TKodeObjekPajak
[]
>
([]);
const
[
kodeObjekPajaks
,
setKodeObjekPajaks
]
=
useState
<
TKodeObjekPajak
[]
>
([]);
const
{
data
:
kodeObjekPajak
,
isLoading
:
isLoadingKop
}
=
useGetKodeObjekPajak
();
const
{
data
:
kodeObjekPajak
}
=
useGetKodeObjekPajak
();
const
{
buildAdvancedFilter
,
buildRequestParams
}
=
useAdvancedFilter
();
const
{
buildAdvancedFilter
,
buildRequestParams
}
=
useAdvancedFilter
();
...
@@ -216,6 +214,7 @@ export function DnListView() {
...
@@ -216,6 +214,7 @@ export function DnListView() {
// ---------- status options and columns (kept identical to your original) ----------
// ---------- status options and columns (kept identical to your original) ----------
type
Status
=
'
draft
'
|
'
normal
'
|
'
cancelled
'
|
'
amended
'
;
type
Status
=
'
draft
'
|
'
normal
'
|
'
cancelled
'
|
'
amended
'
;
type
StatusOption
=
{
value
:
Status
;
label
:
string
};
type
StatusOption
=
{
value
:
Status
;
label
:
string
};
// eslint-disable-next-line react-hooks/exhaustive-deps
const
statusOptions
:
StatusOption
[]
=
[
const
statusOptions
:
StatusOption
[]
=
[
{
value
:
'
draft
'
,
label
:
'
Draft
'
},
{
value
:
'
draft
'
,
label
:
'
Draft
'
},
{
value
:
'
normal
'
,
label
:
'
Normal
'
},
{
value
:
'
normal
'
,
label
:
'
Normal
'
},
...
...
src/sections/bupot-unifikasi/bupot-dokumen-dipersamakan/view/dokumenDipersamakanRekamView.tsx
View file @
d96c2477
...
@@ -64,11 +64,11 @@ const DokumenDipersamakanRekamView = () => {
...
@@ -64,11 +64,11 @@ const DokumenDipersamakanRekamView = () => {
defaultValues
,
defaultValues
,
});
});
const
{
//
const {
reset
,
//
reset,
handleSubmit
,
//
handleSubmit,
formState
:
{
isSubmitting
},
//
formState: { isSubmitting },
}
=
methods
;
//
} = methods;
const
SubmitRekam
=
()
=>
{
const
SubmitRekam
=
()
=>
{
console
.
log
(
'
Submit API
'
);
console
.
log
(
'
Submit API
'
);
...
@@ -124,10 +124,7 @@ const DokumenDipersamakanRekamView = () => {
...
@@ -124,10 +124,7 @@ const DokumenDipersamakanRekamView = () => {
</
form
>
</
form
>
</
Grid
>
</
Grid
>
<
Grid
size=
{
{
xs
:
isOpenPanduan
?
4
:
1
}
}
>
<
Grid
size=
{
{
xs
:
isOpenPanduan
?
4
:
1
}
}
>
<
PanduanDokumenDipersamakanRekam
<
PanduanDokumenDipersamakanRekam
handleOpen=
{
handleOpenPanduan
}
isOpen=
{
isOpenPanduan
}
/>
handleOpen=
{
handleOpenPanduan
}
isOpen=
{
isOpenPanduan
}
/>
</
Grid
>
</
Grid
>
</
Grid
>
</
Grid
>
</
DashboardContent
>
</
DashboardContent
>
...
...
src/sections/bupot-unifikasi/bupot-ssp/components/rekamSsp/Identitas.tsx
View file @
d96c2477
import
Grid
from
'
@mui/material/Grid
'
;
import
Grid
from
'
@mui/material/Grid
'
;
import
{
useState
}
from
'
react
'
;
import
{
useState
}
from
'
react
'
;
import
{
useFormContext
}
from
'
react-hook-form
'
;
import
{
useFormContext
}
from
'
react-hook-form
'
;
import
{
useParams
}
from
'
react-router
'
;
//
import { useParams } from 'react-router';
import
{
Field
}
from
'
src/components/hook-form
'
;
import
{
Field
}
from
'
src/components/hook-form
'
;
type
IdentitasProps
=
{
type
IdentitasProps
=
{
...
@@ -11,7 +11,7 @@ type IdentitasProps = {
...
@@ -11,7 +11,7 @@ type IdentitasProps = {
};
};
const
Identitas
=
({
isPengganti
}:
IdentitasProps
)
=>
{
const
Identitas
=
({
isPengganti
}:
IdentitasProps
)
=>
{
const
{
dnId
}
=
useParams
();
//
const { dnId } = useParams();
const
{
setValue
}
=
useFormContext
();
const
{
setValue
}
=
useFormContext
();
const
[
jumlahKeterangan
,
setJumlahKeterangan
]
=
useState
<
number
>
(
0
);
const
[
jumlahKeterangan
,
setJumlahKeterangan
]
=
useState
<
number
>
(
0
);
...
...
src/sections/bupot-unifikasi/bupot-ssp/view/ssp-list-view.tsx
View file @
d96c2477
...
@@ -74,7 +74,7 @@ export function SspListView() {
...
@@ -74,7 +74,7 @@ export function SspListView() {
.
join
(
'
AND
'
);
.
join
(
'
AND
'
);
};
};
const
{
data
,
isLoading
,
isError
}
=
useGetDn
({
const
{
data
,
isLoading
}
=
useGetDn
({
params
:
{
params
:
{
Page
:
paginationModel
.
page
+
1
,
// API biasanya 1-based
Page
:
paginationModel
.
page
+
1
,
// API biasanya 1-based
Limit
:
paginationModel
.
pageSize
,
Limit
:
paginationModel
.
pageSize
,
...
@@ -82,7 +82,7 @@ export function SspListView() {
...
@@ -82,7 +82,7 @@ export function SspListView() {
sortingMode
:
sortModel
[
0
]?.
field
,
sortingMode
:
sortModel
[
0
]?.
field
,
sortingMethod
:
sortModel
[
0
]?.
sort
,
sortingMethod
:
sortModel
[
0
]?.
sort
,
},
},
refetchOnWindowFocus
:
false
,
//
refetchOnWindowFocus: false,
});
});
const
totalRows
=
data
?.
total
||
0
;
const
totalRows
=
data
?.
total
||
0
;
...
...
src/sections/dashboard/utils/api.tsx
View file @
d96c2477
...
@@ -66,7 +66,7 @@ const vswpApi = {
...
@@ -66,7 +66,7 @@ const vswpApi = {
const
{
const
{
data
:
{
status
,
data
},
data
:
{
status
,
data
},
status
:
httpStatus
,
//
status: httpStatus,
}
=
await
dashboardClient
.
post
<
TVswpResponse
>
(
'
/sandbox/vswp/npwp
'
,
payload
);
}
=
await
dashboardClient
.
post
<
TVswpResponse
>
(
'
/sandbox/vswp/npwp
'
,
payload
);
// ✅ status adalah dari body, bukan httpStatus
// ✅ status adalah dari body, bukan httpStatus
...
@@ -82,7 +82,7 @@ const vswpApi = {
...
@@ -82,7 +82,7 @@ const vswpApi = {
const
{
const
{
data
:
{
status
,
data
},
data
:
{
status
,
data
},
status
:
httpStatus
,
//
status: httpStatus,
}
=
await
dashboardClient
.
post
<
TVswpResponse
>
(
'
/sandbox/vswp/nik
'
,
payload
);
}
=
await
dashboardClient
.
post
<
TVswpResponse
>
(
'
/sandbox/vswp/nik
'
,
payload
);
if
(
status
!==
1
)
{
if
(
status
!==
1
)
{
...
...
src/shared/hooks/useDialogProgressBar.tsx
View file @
d96c2477
...
@@ -88,6 +88,7 @@ const useDialogProgressBar = (): UseDialogProgressBarReturn => {
...
@@ -88,6 +88,7 @@ const useDialogProgressBar = (): UseDialogProgressBarReturn => {
useEffect
(()
=>
{
useEffect
(()
=>
{
handleStatus
();
handleStatus
();
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[
numberOfDataProcessed
,
numberOfData
]);
},
[
numberOfDataProcessed
,
numberOfData
]);
return
{
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment