diff --git a/src/components/pagination/pagination.tsx b/src/components/pagination/pagination.tsx index ef8c61b2..824f15d3 100644 --- a/src/components/pagination/pagination.tsx +++ b/src/components/pagination/pagination.tsx @@ -1,10 +1,4 @@ -import { - createContext, - useContext, - forwardRef, - type ReactNode, - type ElementType, -} from 'react'; +import { createContext, useContext, forwardRef, type ReactNode } from 'react'; import { cn, callAll } from '@/utilities/functions'; import { ChevronLeft, ChevronRight } from 'lucide-react'; import { disabledClassNames, sizeClassNames } from './component-style'; @@ -33,14 +27,14 @@ export interface PaginationProps extends PaginationCommonProps { disabled?: boolean; } -export interface PaginationItemProps extends PaginationCommonProps { +export interface PaginationItemProps + extends PaginationCommonProps, + PaginationButtonProps { /** Marks the pagination item as active. */ isActive?: boolean; } export interface PaginationButtonProps extends PaginationCommonProps { - /** The element type of the pagination button. */ - as?: ElementType; /** Marks the button as active. */ isActive?: boolean; /** Disables the button. */ diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index bcd09cc7..24a85ddd 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -216,7 +216,7 @@ export const Table = ( { } > -
+
= ( { { checkboxSelection && ( ) } { children } @@ -348,13 +350,15 @@ export const TableRow = ( { { ...props } > { checkboxSelection && ( - ) } { children }
- +
+ +
- + +
+ +