Skip to content

Commit 79c1cf6

Browse files
Hardik500gtsiolis
authored andcommitted
Changed arrowReversed prop to arrowDirection
1 parent 7f2b8ad commit 79c1cf6

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

components/dashboard/src/Pagination/PaginationNavigationButton.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Arrow from "../components/Arrow";
99
interface PaginationNavigationButtonProps {
1010
isDisabled: boolean;
1111
label: string;
12-
arrowReversed: boolean;
12+
arrowDirection: string;
1313
onClick: () => void;
1414
}
1515

@@ -25,17 +25,9 @@ function PaginationNavigationButton(props: PaginationNavigationButtonProps) {
2525
}`}
2626
>
2727
<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}
3931
</span>
4032
</li>
4133
);

0 commit comments

Comments
 (0)