From dc0cbb41f07f829c7034bed1d24e62b18a5a66fc Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 2 Oct 2025 16:50:59 +0530 Subject: [PATCH] (fix:table) remove display name --- frontend/src/components/Table.tsx | 52 ++++++++++++++----------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/frontend/src/components/Table.tsx b/frontend/src/components/Table.tsx index 06844828..b48c0b7f 100644 --- a/frontend/src/components/Table.tsx +++ b/frontend/src/components/Table.tsx @@ -9,7 +9,6 @@ interface TableProps { interface TableContainerProps { children: React.ReactNode; className?: string; - ref?: React.Ref; height?: string; bordered?: boolean; } @@ -33,35 +32,32 @@ interface TableCellProps { align?: 'left' | 'right' | 'center'; } -function TableContainerBase( - { - children, - className = '', - height = 'auto', - bordered = true, - }: TableContainerProps, - ref: React.Ref, -) { - return ( -
-
- {children} -
-
- ); -} - const TableContainer = React.forwardRef( - TableContainerBase, + function TableContainer( + { + children, + className = '', + height = 'auto', + bordered = true, + }: TableContainerProps, + ref: React.ForwardedRef, + ) { + return ( +
+
+ {children} +
+
+ ); + }, ); -TableContainer.displayName = 'TableContainer'; const Table: React.FC = ({ children,