Skip to content
Snippets Groups Projects
Unverified Commit 5adb0835 authored by DJ Mountney's avatar DJ Mountney Committed by GitHub
Browse files

:bug: Fix a missing ref param warning for forwardRef (#2277)

* Fix a missing ref param warning for forwardRef

- Drop unused usage of forwardRef on TableWithNavigator
parent 524bd4e9
No related branches found
No related tags found
No related merge requests found
...@@ -848,13 +848,14 @@ type TableHandleRef<T extends TableItem = TableItem> = { ...@@ -848,13 +848,14 @@ type TableHandleRef<T extends TableItem = TableItem> = {
type TableWithNavigatorProps = TableProps & { type TableWithNavigatorProps = TableProps & {
fields; fields;
}; };
export const TableWithNavigator = forwardRef<
TableHandleRef<TableItem>, export function TableWithNavigator({
TableWithNavigatorProps fields,
>(({ fields, ...props }) => { ...props
}: TableWithNavigatorProps) {
const navigator = useTableNavigator(props.items, fields); const navigator = useTableNavigator(props.items, fields);
return <Table {...props} navigator={navigator} />; return <Table {...props} navigator={navigator} />;
}); }
type TableItem = { id: number | string }; type TableItem = { id: number | string };
......
---
category: Bugfix
authors: [twk3]
---
Fix a missing ref param warning for forwardRef
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment