emm - use string instead of date for start/endDate

This commit is contained in:
Thomas Ruoff
2022-03-30 23:56:08 +02:00
parent 9f45eab6e7
commit c65d8df853
8 changed files with 13652 additions and 878 deletions

View File

@@ -15,8 +15,8 @@ export default function DateSelect() {
<>
<InputWrapper label="Datum" required>
<Calendar
start={dateFormatBackend(startDate)}
end={dateFormatBackend(endDate)}
start={startDate}
end={endDate}
onChange={onChange}
className="my-6 max-w-lg"
/>
@@ -28,7 +28,7 @@ export default function DateSelect() {
type="date"
className=""
name="startDate"
value={dateFormatBackend(startDate) || ''}
value={startDate || ''}
onChange={onChangeEvent}
min={today}
required
@@ -41,10 +41,10 @@ export default function DateSelect() {
type="date"
className=""
name="endDate"
value={dateFormatBackend(endDate) || ''}
value={endDate || ''}
placeholder="Von"
onChange={onChangeEvent}
min={dateFormatBackend(startDate) || today}
min={startDate || today}
/>
</div>
</div>