File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments