slots removed

This commit is contained in:
Jubair70
2023-07-21 15:03:58 +06:00
parent 1d97f01942
commit f7d8e4ebb4

View File

@ -59,7 +59,7 @@ const ResumeInput: React.FC<Props> = ({ type = 'text', label, path, className, m
label={label} label={label}
value={dayjs(value)} value={dayjs(value)}
views={['year', 'month', 'day']} views={['year', 'month', 'day']}
slots={{ textField: (params) => <TextField {...params} error={false} className={className} /> }} className={className}
onChange={(date: dayjs.Dayjs | null) => { onChange={(date: dayjs.Dayjs | null) => {
if (!date) return onChangeValue(''); if (!date) return onChangeValue('');
if (dayjs(date).isValid()) return onChangeValue(dayjs(date).format('YYYY-MM-DD')); if (dayjs(date).isValid()) return onChangeValue(dayjs(date).format('YYYY-MM-DD'));