Skip to content

Commit 29f8aaa

Browse files
committed
chore: lint
1 parent 0dc980e commit 29f8aaa

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

packages/ui/shared/table/DataTable.tsx

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,17 @@ interface Prop<TData> extends HTMLAttributes<HTMLDivElement> {
2121
renderSubComponent?: (props: { row: Row<TData> }) => React.ReactElement;
2222
}
2323

24-
function DataTableInner<TData>(
25-
{
26-
table,
27-
renderSubComponent,
28-
stickyHeader = false,
29-
isLoading = false,
30-
spacing = "md",
31-
className,
32-
...props
33-
}: Prop<TData>,
34-
ref: ForwardedRef<HTMLDivElement>,
35-
) {
24+
export function DataTable<TData>({
25+
table,
26+
renderSubComponent,
27+
stickyHeader = false,
28+
isLoading = false,
29+
spacing = "md",
30+
className,
31+
...props
32+
}: Prop<TData>) {
3633
return (
37-
<div className={className} ref={ref} {...props}>
34+
<div className={className} {...props}>
3835
<Table className="border-separate border-spacing-0">
3936
<TableHeader
4037
className={cn(
@@ -128,5 +125,3 @@ function DataTableInner<TData>(
128125
</div>
129126
);
130127
}
131-
132-
export const DataTable = forwardRef(DataTableInner);

0 commit comments

Comments
 (0)