1
- import { Button , Flex , IconButton , chakra } from '@chakra-ui/react' ;
1
+ import { Button , Flex , chakra } from '@chakra-ui/react' ;
2
2
import React from 'react' ;
3
3
4
4
import type { PaginationParams } from './types' ;
5
5
6
6
import Skeleton from 'ui/shared/chakra/Skeleton' ;
7
- import IconSvg from 'ui/shared/IconSvg' ;
8
7
9
8
interface Props extends PaginationParams {
10
9
className ?: string ;
@@ -38,18 +37,20 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasPage
38
37
</ Button >
39
38
</ Skeleton >
40
39
< Skeleton isLoaded = { ! showSkeleton } display = "inline-block" mr = { 3 } borderRadius = "base" >
41
- < IconButton
42
- onClick = { onPrevPageClick }
40
+ < Button
43
41
size = "sm"
44
42
px = "24px"
45
43
py = "12px"
46
44
fontWeight = { 400 }
47
- aria-label = "Prev page"
48
- w = "36px"
45
+ data-selected = { true }
49
46
h = { 9 }
50
- icon = { < IconSvg name = "arrows/east-mini" w = { 5 } h = { 5 } /> }
47
+ minW = "36px"
48
+ cursor = "unset"
51
49
isDisabled = { ! canGoBackwards || isLoading }
52
- />
50
+ onClick = { onPrevPageClick }
51
+ >
52
+ { '<' }
53
+ </ Button >
53
54
</ Skeleton >
54
55
< Skeleton isLoaded = { ! showSkeleton } display = "inline-block" borderRadius = "base" >
55
56
< Button
@@ -66,18 +67,21 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasPage
66
67
</ Button >
67
68
</ Skeleton >
68
69
< Skeleton isLoaded = { ! showSkeleton } display = "inline-block" ml = { 3 } borderRadius = "base" >
69
- < IconButton
70
- onClick = { onNextPageClick }
70
+ { '>' }
71
+ < Button
72
+ size = "sm"
71
73
px = "24px"
72
74
py = "12px"
73
- h = { 9 }
74
75
fontWeight = { 400 }
75
- size = "sm"
76
- aria-label = "Next page"
77
- w = "36px"
78
- icon = { < IconSvg name = "arrows/east-mini" w = { 5 } h = { 5 } transform = "rotate(180deg)" /> }
76
+ data-selected = { true }
77
+ h = { 9 }
78
+ minW = "36px"
79
+ cursor = "unset"
79
80
isDisabled = { ! hasNextPage || isLoading }
80
- />
81
+ onClick = { onNextPageClick }
82
+ >
83
+ { '<' }
84
+ </ Button >
81
85
</ Skeleton >
82
86
{ /* not implemented yet */ }
83
87
{ /* <Flex alignItems="center" width="132px" ml={ 16 } display={{ base: 'none', lg: 'flex' }}>
0 commit comments