We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a34ead commit 7027adcCopy full SHA for 7027adc
packages/ra-ui-materialui/src/list/SimpleList/SimpleList.tsx
@@ -7,7 +7,11 @@ import {
7
ListItemText,
8
ListProps,
9
} from '@mui/material';
10
-import { type ComponentsOverrides, styled } from '@mui/material/styles';
+import {
11
+ type ComponentsOverrides,
12
+ styled,
13
+ useThemeProps,
14
+} from '@mui/material/styles';
15
import {
16
type RaRecord,
17
RecordContextProvider,
@@ -67,8 +71,13 @@ import {
67
71
* );
68
72
*/
69
73
export const SimpleList = <RecordType extends RaRecord = any>(
70
- props: SimpleListProps<RecordType>
74
+ inProps: SimpleListProps<RecordType>
75
) => {
76
+ const props = useThemeProps({
77
+ props: inProps,
78
+ name: PREFIX,
79
+ });
80
+
81
const {
82
className,
83
empty = DefaultEmpty,
0 commit comments