(fix:table) remove display name

This commit is contained in:
ManishMadan2882
2025-10-02 16:50:59 +05:30
parent c4a54a85be
commit dc0cbb41f0

View File

@@ -9,7 +9,6 @@ interface TableProps {
interface TableContainerProps {
children: React.ReactNode;
className?: string;
ref?: React.Ref<HTMLDivElement>;
height?: string;
bordered?: boolean;
}
@@ -33,14 +32,15 @@ interface TableCellProps {
align?: 'left' | 'right' | 'center';
}
function TableContainerBase(
const TableContainer = React.forwardRef<HTMLDivElement, TableContainerProps>(
function TableContainer(
{
children,
className = '',
height = 'auto',
bordered = true,
}: TableContainerProps,
ref: React.Ref<HTMLDivElement>,
ref: React.ForwardedRef<HTMLDivElement>,
) {
return (
<div className={`relative rounded-[6px] ${className}`}>
@@ -56,12 +56,8 @@ function TableContainerBase(
</div>
</div>
);
}
const TableContainer = React.forwardRef<HTMLDivElement, TableContainerProps>(
TableContainerBase,
},
);
TableContainer.displayName = 'TableContainer';
const Table: React.FC<TableProps> = ({
children,