We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb63d28 commit 9a9be8bCopy full SHA for 9a9be8b
components/global/pagination/pagination-button.tsx
@@ -1,6 +1,7 @@
1
import { ChevronLeft, ChevronRight } from "lucide-react";
2
import { Button } from "../../ui/button";
3
import Link from "next/link";
4
+import { cn } from "@/lib/utils";
5
6
interface PaginationButtonProps {
7
href?: string;
@@ -20,7 +21,10 @@ export default function PaginationButton({
20
21
const buttonContent = (
22
<Button
23
aria-label={typeof children === "string" ? children : undefined}
- 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
+ )}
28
size="sm"
29
onClick={onClick}
30
>
0 commit comments