mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
slots removed
This commit is contained in:
@ -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'));
|
||||||
|
|||||||
Reference in New Issue
Block a user