11import { FC } from 'react'
22import { Table } from '@tanstack/react-table'
3+ import { useTranslation } from 'react-i18next'
34import {
45 Box ,
56 ButtonGroup ,
@@ -14,11 +15,10 @@ import {
1415 NumberInputStepper ,
1516 Select ,
1617 Text ,
18+ type IconButtonProps ,
1719} from '@chakra-ui/react'
18- import { type IconButtonProps } from '@chakra-ui/react'
19- import { MdArrowLeft , MdArrowRight } from 'react-icons/md'
20- import { BiSkipNext , BiSkipPrevious } from 'react-icons/bi'
21- import { useTranslation } from 'react-i18next'
20+ import { LuSkipBack , LuSkipForward , LuStepBack , LuStepForward } from 'react-icons/lu'
21+
2222import IconButton from '@/components/Chakra/IconButton.tsx'
2323
2424interface PaginationProps < T > {
@@ -27,7 +27,7 @@ interface PaginationProps<T> {
2727}
2828
2929const PaginationButton : FC < IconButtonProps > = ( props ) => (
30- < IconButton { ...props } size = "sm" fontSize = "24px" icon = { < BiSkipNext /> } />
30+ < IconButton icon = { < LuSkipBack /> } { ...props } size = "sm" fontSize = "18px" />
3131)
3232
3333const PaginationBar = < T , > ( { table, pageSizes } : PaginationProps < T > ) => {
@@ -36,25 +36,25 @@ const PaginationBar = <T,>({ table, pageSizes }: PaginationProps<T>) => {
3636 < HStack as = "nav" aria-label = { t ( 'components:pagination.ariaLabel' ) as string } gap = { 8 } mt = { 4 } >
3737 < ButtonGroup isAttached variant = "ghost" >
3838 < PaginationButton
39- icon = { < BiSkipPrevious /> }
39+ icon = { < LuSkipBack /> }
4040 onClick = { ( ) => table . setPageIndex ( 0 ) }
4141 aria-label = { t ( 'components:pagination.goFirstPage' ) }
4242 isDisabled = { ! table . getCanPreviousPage ( ) }
4343 />
4444 < PaginationButton
45- icon = { < MdArrowLeft /> }
45+ icon = { < LuStepBack /> }
4646 onClick = { ( ) => table . previousPage ( ) }
4747 aria-label = { t ( 'components:pagination.goPreviousPage' ) }
4848 isDisabled = { ! table . getCanPreviousPage ( ) }
4949 />
5050 < PaginationButton
51- icon = { < MdArrowRight /> }
51+ icon = { < LuStepForward /> }
5252 onClick = { ( ) => table . nextPage ( ) }
5353 aria-label = { t ( 'components:pagination.goNextPage' ) }
5454 isDisabled = { ! table . getCanNextPage ( ) }
5555 />
5656 < PaginationButton
57- icon = { < BiSkipNext /> }
57+ icon = { < LuSkipForward /> }
5858 onClick = { ( ) => table . setPageIndex ( table . getPageCount ( ) - 1 ) }
5959 aria-label = { t ( 'components:pagination.goLastPage' ) }
6060 isDisabled = { ! table . getCanNextPage ( ) }
0 commit comments