resolve react ownerState warning by correctly passing CalendarIcon
This commit is contained in:
1 parent
290e9226e5
commit
2ccdcdd480
1 file changed
+1
-1
@@ -359,7 +359,7 @@ const CreateMaintenance = () => {
|
|||||||
disablePast
|
disablePast
|
||||||
disableHighlightToday
|
disableHighlightToday
|
||||||
value={form.startDate}
|
value={form.startDate}
|
||||||
slots={{ openPickerIcon: CalendarIcon }}
|
slots={{ openPickerIcon: () => <CalendarIcon /> }}
|
||||||
slotProps={{
|
slotProps={{
|
||||||
switchViewButton: { sx: { display: "none" } },
|
switchViewButton: { sx: { display: "none" } },
|
||||||
nextIconButton: { sx: { ml: theme.spacing(2) } },
|
nextIconButton: { sx: { ml: theme.spacing(2) } },
|
||||||
|
|||||||
Reference in new issue
Block a user