Skip to content

Commit 7027adc

Browse files
committed
Add missing useThemeProps in SimpleList.
1 parent 1a34ead commit 7027adc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import {
77
ListItemText,
88
ListProps,
99
} from '@mui/material';
10-
import { type ComponentsOverrides, styled } from '@mui/material/styles';
10+
import {
11+
type ComponentsOverrides,
12+
styled,
13+
useThemeProps,
14+
} from '@mui/material/styles';
1115
import {
1216
type RaRecord,
1317
RecordContextProvider,
@@ -67,8 +71,13 @@ import {
6771
* );
6872
*/
6973
export const SimpleList = <RecordType extends RaRecord = any>(
70-
props: SimpleListProps<RecordType>
74+
inProps: SimpleListProps<RecordType>
7175
) => {
76+
const props = useThemeProps({
77+
props: inProps,
78+
name: PREFIX,
79+
});
80+
7281
const {
7382
className,
7483
empty = DefaultEmpty,

0 commit comments

Comments
 (0)