Skip to content

Commit 9a9be8b

Browse files
committed
refactor: update pagination button styling and use cn utility
1 parent bb63d28 commit 9a9be8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/global/pagination/pagination-button.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ChevronLeft, ChevronRight } from "lucide-react";
22
import { Button } from "../../ui/button";
33
import Link from "next/link";
4+
import { cn } from "@/lib/utils";
45

56
interface PaginationButtonProps {
67
href?: string;
@@ -20,7 +21,10 @@ export default function PaginationButton({
2021
const buttonContent = (
2122
<Button
2223
aria-label={typeof children === "string" ? children : undefined}
23-
className={`flex items-center gap-2 ${active ? "bg-primary text-primary-foreground" : ""}`}
24+
className={cn(
25+
"flex items-center gap-2 border-black border-",
26+
active && "bg-white text-black ",
27+
)}
2428
size="sm"
2529
onClick={onClick}
2630
>

0 commit comments

Comments
 (0)