diff --git a/src/components/input/SelectInputCheckbox.tsx b/src/components/input/SelectInputCheckbox.tsx index b0ef61a3..0827a70a 100644 --- a/src/components/input/SelectInputCheckbox.tsx +++ b/src/components/input/SelectInputCheckbox.tsx @@ -47,7 +47,7 @@ const CheckboxOption = < ); }; -const SelectInputCheckbox = ( +const SelectInputCheckbox = ( props: SelectInputCheckboxProps ) => { const { diff --git a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx index 822d5938..8a3a1e91 100644 --- a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx +++ b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx @@ -19,7 +19,6 @@ import { CustomerPaymentSummary, } from '@/types/api/report/customer-payment'; import { isResponseSuccess } from '@/lib/api-helper'; -import Pagination from '@/components/Pagination'; import Button from '@/components/Button'; import Dropdown from '@/components/Dropdown'; import MenuItem from '@/components/menu/MenuItem'; @@ -38,7 +37,7 @@ const CustomerPaymentTab = () => { // ===== PAGINATION STATE ===== const [currentPage, setCurrentPage] = useState(1); - const [pageSize, setPageSize] = useState(10); + const [pageSize] = useState(10); // ===== SUBMISSION STATE ===== const [isSubmitted, setIsSubmitted] = useState(false); @@ -194,11 +193,6 @@ const CustomerPaymentTab = () => { [customerPayment] ); - const meta = - isResponseSuccess(customerPayment) && customerPayment?.meta - ? customerPayment.meta - : null; - // ===== EXPORT DATA FETCHER ===== const customerPaymentExport = useCallback(async (): Promise< CustomerPaymentReport[] | null @@ -296,27 +290,6 @@ const CustomerPaymentTab = () => { } }, [customerPaymentExport]); - // ===== PAGINATION HANDLERS ===== - const handlePageChange = (page: number) => { - setCurrentPage(page); - }; - - const handleRowChange = (pageSize: number) => { - setPageSize(pageSize); - }; - - const handleNextPage = () => { - if (meta && currentPage < meta.total_pages) { - setCurrentPage(currentPage + 1); - } - }; - - const handlePrevPage = () => { - if (currentPage > 1) { - setCurrentPage(currentPage - 1); - } - }; - const getTableColumns = ( summary: CustomerPaymentSummary ): ColumnDef[] => { @@ -796,20 +769,6 @@ const CustomerPaymentTab = () => { }) )} - {meta && data.length > 0 && ( -
- -
- )} ); };