Fix Mantine 8 migration error with Date strings
This commit is contained in:
parent
fe70af4417
commit
6ec9e52334
@ -66,13 +66,13 @@ export default function DateRangePicker(props: DateRangePickerProps) {
|
|||||||
<DateTimePicker
|
<DateTimePicker
|
||||||
label="Start Date"
|
label="Start Date"
|
||||||
value={startDate}
|
value={startDate}
|
||||||
onChange={setStartDate}
|
onChange={(value) => setStartDate(new Date(value))}
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
<DateTimePicker
|
<DateTimePicker
|
||||||
label="End Date"
|
label="End Date"
|
||||||
value={endDate}
|
value={endDate}
|
||||||
onChange={setEndDate}
|
onChange={(value) => setEndDate(new Date(value))}
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
|
Loading…
Reference in New Issue
Block a user