mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 01:58:40 -05:00
🐛 Fix a missing ref param warning for forwardRef (#2277)
* Fix a missing ref param warning for forwardRef - Drop unused usage of forwardRef on TableWithNavigator
This commit is contained in:
@@ -848,13 +848,14 @@ type TableHandleRef<T extends TableItem = TableItem> = {
|
||||
type TableWithNavigatorProps = TableProps & {
|
||||
fields;
|
||||
};
|
||||
export const TableWithNavigator = forwardRef<
|
||||
TableHandleRef<TableItem>,
|
||||
TableWithNavigatorProps
|
||||
>(({ fields, ...props }) => {
|
||||
|
||||
export function TableWithNavigator({
|
||||
fields,
|
||||
...props
|
||||
}: TableWithNavigatorProps) {
|
||||
const navigator = useTableNavigator(props.items, fields);
|
||||
return <Table {...props} navigator={navigator} />;
|
||||
});
|
||||
}
|
||||
|
||||
type TableItem = { id: number | string };
|
||||
|
||||
|
||||
6
upcoming-release-notes/2277.md
Normal file
6
upcoming-release-notes/2277.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [twk3]
|
||||
---
|
||||
|
||||
Fix a missing ref param warning for forwardRef
|
||||
Reference in New Issue
Block a user