mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 12:43:24 +00:00
Small Fixes and Improvements
This commit is contained in:
parent
34bafe42a5
commit
10c54df886
11 changed files with 177 additions and 629 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue