mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
fix(frontend): resolve React 18 type errors
- Add children prop to components that lost implicit children (React.FC) - Fix ReactNode type narrowing (Date, bigint, object, function types) - Replace waitForNextUpdate with waitFor in renderHook tests (RTL 14) - Add @ts-expect-error for react-dnd DndProvider children prop - Forward ref in CustomListItem for dnd-kit sortable - Fix icon prop types to use ReactNode - Update ui-overrides root.context.provider type for children Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,5 +70,5 @@ export const TextCellRenderer = (params: CellRendererProps) => {
|
||||
}
|
||||
}
|
||||
|
||||
return <div>{valueFormatted ?? value}</div>;
|
||||
return <div>{valueFormatted ?? (value instanceof Date ? value.toISOString() : value)}</div>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user