resolve react ownerState warning by correctly passing CalendarIcon

This commit is contained in:
Vishnu Sreekumaran Nair
2025-02-19 14:45:40 -05:00
parent 290e9226e5
commit 2ccdcdd480

View File

@@ -359,7 +359,7 @@ const CreateMaintenance = () => {
disablePast
disableHighlightToday
value={form.startDate}
slots={{ openPickerIcon: CalendarIcon }}
slots={{ openPickerIcon: () => <CalendarIcon /> }}
slotProps={{
switchViewButton: { sx: { display: "none" } },
nextIconButton: { sx: { ml: theme.spacing(2) } },