Commit 9b4bd767 authored by Rais Aryaguna's avatar Rais Aryaguna

fix warning

parent a6b0b18d
import { CONFIG } from 'src/global-config'; import { CONFIG } from 'src/global-config';
// eslint-disable-next-line import/no-unresolved
import { NrListView } from 'src/sections/bupot-unifikasi/bupot-nr/view'; import { NrListView } from 'src/sections/bupot-unifikasi/bupot-nr/view';
const metadata = { title: `E-Bupot Unifikasi- ${CONFIG.appName}` }; const metadata = { title: `E-Bupot Unifikasi- ${CONFIG.appName}` };
......
...@@ -291,7 +291,7 @@ export function BulananListView() { ...@@ -291,7 +291,7 @@ export function BulananListView() {
const [rowSelectionModel, setRowSelectionModel] = useState<GridRowSelectionModel | undefined>( const [rowSelectionModel, setRowSelectionModel] = useState<GridRowSelectionModel | undefined>(
undefined undefined
); );
const [selectionVersion, setSelectionVersion] = useState(0); // const [selectionVersion, setSelectionVersion] = useState(0);
const [modals, setModals] = useState({ const [modals, setModals] = useState({
delete: false, delete: false,
...@@ -414,7 +414,7 @@ export function BulananListView() { ...@@ -414,7 +414,7 @@ export function BulananListView() {
unstable_batchedUpdates(() => { unstable_batchedUpdates(() => {
dataSelectedRef.current = selectedData; dataSelectedRef.current = selectedData;
setRowSelectionModel(newSelection); setRowSelectionModel(newSelection);
setSelectionVersion((v) => v + 1); // setSelectionVersion((v) => v + 1);
}); });
}, 150); }, 150);
...@@ -430,7 +430,7 @@ export function BulananListView() { ...@@ -430,7 +430,7 @@ export function BulananListView() {
const updatedSelected = ids.map((id) => api.getRow(id)).filter(Boolean); const updatedSelected = ids.map((id) => api.getRow(id)).filter(Boolean);
dataSelectedRef.current = updatedSelected; dataSelectedRef.current = updatedSelected;
setSelectionVersion((v) => v + 1); // setSelectionVersion((v) => v + 1);
}; };
if ((window as any).requestIdleCallback) { if ((window as any).requestIdleCallback) {
......
...@@ -54,6 +54,7 @@ export function useAdvancedFilter() { ...@@ -54,6 +54,7 @@ export function useAdvancedFilter() {
const digits = String(value).replace(/[^0-9]/g, ''); const digits = String(value).replace(/[^0-9]/g, '');
if (digits.length >= 8) return digits.slice(0, 8); if (digits.length >= 8) return digits.slice(0, 8);
return digits; return digits;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (error) { } catch (error) {
console.warn('Invalid date format:', value); console.warn('Invalid date format:', value);
return ''; return '';
......
...@@ -29,7 +29,6 @@ import { paths } from 'src/routes/paths'; ...@@ -29,7 +29,6 @@ import { paths } from 'src/routes/paths';
import { FG_STATUS_BUPOT } from 'src/sections/bupot-21-26/constant'; import { FG_STATUS_BUPOT } from 'src/sections/bupot-21-26/constant';
import { appRootKey, bupotfinal } from 'src/sections/bupot-21-26/constant/queryKey'; import { appRootKey, bupotfinal } from 'src/sections/bupot-21-26/constant/queryKey';
import StatusChip from 'src/sections/bupot-unifikasi/bupot-dn/components/StatusChip'; import StatusChip from 'src/sections/bupot-unifikasi/bupot-dn/components/StatusChip';
import TableHeaderLabel from 'src/shared/components/TableHeaderLabel';
import { formatRupiah } from 'src/shared/FormatRupiah/FormatRupiah'; import { formatRupiah } from 'src/shared/FormatRupiah/FormatRupiah';
import { useDebounce, useThrottle } from 'src/shared/hooks/useDebounceThrottle'; import { useDebounce, useThrottle } from 'src/shared/hooks/useDebounceThrottle';
import { createTableKey, useTablePagination } from '../../paginationStore'; import { createTableKey, useTablePagination } from '../../paginationStore';
...@@ -40,7 +39,6 @@ import ModalUploadBupotfinal from '../components/dialog/ModalUploadBupotFinal'; ...@@ -40,7 +39,6 @@ import ModalUploadBupotfinal from '../components/dialog/ModalUploadBupotFinal';
import { CustomToolbar } from '../components/table/CustomToolbar'; import { CustomToolbar } from '../components/table/CustomToolbar';
import { useAdvancedFilter } from '../hooks/useAdvancedFilter'; import { useAdvancedFilter } from '../hooks/useAdvancedFilter';
import useGetBupotfinal from '../hooks/useGetBupotFinal'; import useGetBupotfinal from '../hooks/useGetBupotFinal';
import { useKodeObjekPajak } from 'src/actions/master-data';
export type IColumnGrid = GridColDef & { export type IColumnGrid = GridColDef & {
field: field:
...@@ -266,7 +264,7 @@ export function BupotfinalListView() { ...@@ -266,7 +264,7 @@ export function BupotfinalListView() {
const [rowSelectionModel, setRowSelectionModel] = useState<GridRowSelectionModel | undefined>( const [rowSelectionModel, setRowSelectionModel] = useState<GridRowSelectionModel | undefined>(
undefined undefined
); );
const [selectionVersion, setSelectionVersion] = useState(0); // const [selectionVersion, setSelectionVersion] = useState(0);
const [modals, setModals] = useState({ const [modals, setModals] = useState({
delete: false, delete: false,
...@@ -389,7 +387,7 @@ export function BupotfinalListView() { ...@@ -389,7 +387,7 @@ export function BupotfinalListView() {
unstable_batchedUpdates(() => { unstable_batchedUpdates(() => {
dataSelectedRef.current = selectedData; dataSelectedRef.current = selectedData;
setRowSelectionModel(newSelection); setRowSelectionModel(newSelection);
setSelectionVersion((v) => v + 1); // setSelectionVersion((v) => v + 1);
}); });
}, 150); }, 150);
...@@ -405,7 +403,7 @@ export function BupotfinalListView() { ...@@ -405,7 +403,7 @@ export function BupotfinalListView() {
const updatedSelected = ids.map((id) => api.getRow(id)).filter(Boolean); const updatedSelected = ids.map((id) => api.getRow(id)).filter(Boolean);
dataSelectedRef.current = updatedSelected; dataSelectedRef.current = updatedSelected;
setSelectionVersion((v) => v + 1); // setSelectionVersion((v) => v + 1);
}; };
if ((window as any).requestIdleCallback) { if ((window as any).requestIdleCallback) {
......
...@@ -5,7 +5,7 @@ import { ...@@ -5,7 +5,7 @@ import {
} from '@tanstack/react-query'; } from '@tanstack/react-query';
import type { AxiosError } from 'axios'; import type { AxiosError } from 'axios';
import { endpoints, fetcherHitung } from 'src/lib/axios-ctas-box'; import { endpoints, fetcherHitung } from 'src/lib/axios-ctas-box';
import { FG_PERHITUNGAN, PERHITUNGAN_BUPOT21, PTKP_INPUT, PTKP_NUMBER } from './constant'; import { FG_PERHITUNGAN, PERHITUNGAN_BUPOT21, PTKP_NUMBER } from './constant';
import { checkPerhitunganBupot21, type paramsHitung } from './helper'; import { checkPerhitunganBupot21, type paramsHitung } from './helper';
import { formatDate } from './bupot-a1/utils/formatDate'; import { formatDate } from './bupot-a1/utils/formatDate';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment