Added Pagination to Audit Log Page

This commit is contained in:
Ahmad 2024-11-01 22:07:52 -04:00
parent 10c54df886
commit c9313ff5f0
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
4 changed files with 198 additions and 44 deletions

View file

@ -1,5 +1,6 @@
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';
@ -37,7 +38,7 @@ PaginationItem.displayName = 'PaginationItem';
type PaginationLinkProps = {
isActive?: boolean;
} & Pick<ButtonProps, 'size'> &
React.ComponentProps<'a'>;
React.ComponentProps<typeof Link>;
const PaginationLink = ({
className,
@ -45,7 +46,7 @@ const PaginationLink = ({
size = 'icon',
...props
}: PaginationLinkProps) => (
<a
<Link
aria-current={isActive ? 'page' : undefined}
className={cn(
buttonVariants({