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,