diff --git a/apps/frontend/src/components/PageTemplate.tsx b/apps/frontend/src/components/PageTemplate.tsx index e264630..b0cf287 100644 --- a/apps/frontend/src/components/PageTemplate.tsx +++ b/apps/frontend/src/components/PageTemplate.tsx @@ -23,8 +23,6 @@ import { PaginationContent, PaginationEllipsis, PaginationItem, - PaginationNext, - PaginationPrevious, } from "@/shadcn/components/ui/pagination"; import { Select, @@ -33,6 +31,7 @@ import { SelectTrigger, SelectValue, } from "@/shadcn/components/ui/select"; +import { HiChevronLeft, HiChevronRight } from "react-icons/hi"; type PaginatedResponse> = { data: Array; @@ -90,7 +89,7 @@ const createCreateButton = ( variant={"outline"} onClick={addQuery} > - Create New + Tambah Data ); @@ -180,13 +179,15 @@ const CustomPagination = ({ - onChange(Math.max(1, currentPage - 1))} - aria-disabled={currentPage - 1 == 0 ? true : false} + disabled={currentPage - 1 == 0 ? true : false} className="w-full gap-2 md:w-auto" + variant={"ghost"} > - Previous - + + Sebelumnya +
{getPaginationItems().map((item) => ( @@ -196,13 +197,15 @@ const CustomPagination = ({ ))}
- onChange(Math.min(totalPages, currentPage + 1))} - aria-disabled={currentPage == totalPages ? true : false} + disabled={currentPage == totalPages ? true : false} className="w-full gap-2 md:w-auto" + variant={"ghost"} > - Next - + Selanjutnya + +
@@ -295,7 +298,7 @@ export default function PageTemplate< className="w-full max-w-xs pl-10" value={filterOptions.q} onChange={(e) => handleSearchQueryChange(e.target.value)} - placeholder="Search..." + placeholder="Pencarian..." />
@@ -310,7 +313,7 @@ export default function PageTemplate< {query.data && (
- Per Page + Per Halaman