updating dependencies, fixing server reloads

This commit is contained in:
Amruth Pillai
2023-06-07 18:39:14 +02:00
parent c571f201d3
commit d4b6c16bf9
25 changed files with 1674 additions and 1821 deletions

View File

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