From 6e555184f0203d143eb557aaf7b27f4455fd35ff Mon Sep 17 00:00:00 2001 From: "fredy.siswanto" Date: Thu, 6 Mar 2025 17:37:23 +0700 Subject: [PATCH] feat: add pagination icons to UiTable component for improved navigation --- app/components/ui/table.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/components/ui/table.tsx b/app/components/ui/table.tsx index ca22ed5..3225929 100644 --- a/app/components/ui/table.tsx +++ b/app/components/ui/table.tsx @@ -11,6 +11,10 @@ export type UiTableProperties = { title: string } +const renderPaginationIcon = (icon: string) => { + return `
${icon}
` +} + export const UiTable: React.FC = ({ data, columns, @@ -33,6 +37,22 @@ export const UiTable: React.FC = ({ searching: true, ordering: true, info: true, + language: { + paginate: { + first: renderPaginationIcon( + ``, + ), + previous: renderPaginationIcon( + ``, + ), + next: renderPaginationIcon( + ``, + ), + last: renderPaginationIcon( + ` `, + ), + }, + }, ...options, }} />