mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
emm - use string instead of date for start/endDate
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user