From 60ee8bb62e5f3f3ed6a7ce6703b736c94afbeefa Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 09:17:05 +0000 Subject: [PATCH] Fix: Resolve TypeScript errors in table component The component was throwing TypeScript errors because the React namespace did not have the HTMLTableProps, HTMLTableSectionProps and HTMLTableRowProps exported. These have been replaced with React.HTMLAttributes and React.HTMLAttributes and React.HTMLAttributes respectively. --- src/components/ui/table.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 7f75669..0876f1f 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -5,7 +5,7 @@ import { cn } from "@/lib/utils" const Table = React.forwardRef< HTMLTableElement, - React.HTMLTableProps + React.TableHTMLAttributes >(({ className, ...props }, ref) => (
>(({ className, ...props }, ref) => ( )) @@ -27,7 +27,7 @@ TableHeader.displayName = "TableHeader" const TableBody = React.forwardRef< HTMLTableSectionElement, - React.HTMLTableSectionProps + React.HTMLAttributes >(({ className, ...props }, ref) => ( >(({ className, ...props }, ref) => ( >(({ className, ...props }, ref) => (