Small Fixes and Improvements

This commit is contained in:
Ahmad 2024-10-31 21:58:40 -04:00
parent 34bafe42a5
commit 10c54df886
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
11 changed files with 177 additions and 629 deletions

View file

@ -1,6 +1,5 @@
import * as React from 'react';
import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';
import Link from 'next/link';
import { cn } from '@/lib/utils';
import { ButtonProps, buttonVariants } from '@/components/ui/button';
@ -38,7 +37,7 @@ PaginationItem.displayName = 'PaginationItem';
type PaginationLinkProps = {
isActive?: boolean;
} & Pick<ButtonProps, 'size'> &
React.ComponentProps<typeof Link>;
React.ComponentProps<'a'>;
const PaginationLink = ({
className,
@ -46,7 +45,7 @@ const PaginationLink = ({
size = 'icon',
...props
}: PaginationLinkProps) => (
<Link
<a
aria-current={isActive ? 'page' : undefined}
className={cn(
buttonVariants({