Skip to content

Commit b04c59e

Browse files
committed
[TypeScript] Fix <SingleFieldList component> doesn't accept string components
Refs #6036
1 parent f8df1eb commit b04c59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-ui-materialui/src/list/SingleFieldList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export interface SingleFieldListProps<RecordType extends Record = Record>
160160
extends HtmlHTMLAttributes<HTMLDivElement> {
161161
className?: string;
162162
classes?: ClassesOverride<typeof useStyles>;
163-
component?: ComponentType<any>;
163+
component?: string | ComponentType<any>;
164164
linkType?: string | false;
165165
children: React.ReactElement;
166166
// can be injected when using the component without context

0 commit comments

Comments
 (0)