File tree 1 file changed +4
-12
lines changed 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Arrow from "../components/Arrow";
9
9
interface PaginationNavigationButtonProps {
10
10
isDisabled : boolean ;
11
11
label : string ;
12
- arrowReversed : boolean ;
12
+ arrowDirection : string ;
13
13
onClick : ( ) => void ;
14
14
}
15
15
@@ -25,17 +25,9 @@ function PaginationNavigationButton(props: PaginationNavigationButtonProps) {
25
25
} `}
26
26
>
27
27
< span onClick = { props . onClick } >
28
- { props . arrowReversed ? (
29
- < >
30
- { props . label }
31
- < Arrow direction = { "right" } customBorderClasses = { activeArrowClass } />
32
- </ >
33
- ) : (
34
- < >
35
- < Arrow direction = { "left" } customBorderClasses = { activeArrowClass } />
36
- { props . label }
37
- </ >
38
- ) }
28
+ { props . arrowDirection === "right" && props . label }
29
+ < Arrow direction = { props . arrowDirection } customBorderClasses = { activeArrowClass } />
30
+ { props . arrowDirection === "left" && props . label }
39
31
</ span >
40
32
</ li >
41
33
) ;
You can’t perform that action at this time.
0 commit comments