Fix Mantine 8 migration error with Date strings

This commit is contained in:
kurt-mcrae 2025-05-12 18:11:21 +10:00
parent fe70af4417
commit 6ec9e52334

View File

@ -66,13 +66,13 @@ export default function DateRangePicker(props: DateRangePickerProps) {
<DateTimePicker
label="Start Date"
value={startDate}
onChange={setStartDate}
onChange={(value) => setStartDate(new Date(value))}
clearable
/>
<DateTimePicker
label="End Date"
value={endDate}
onChange={setEndDate}
onChange={(value) => setEndDate(new Date(value))}
clearable
/>
</Group>