make org, purpose, destination optional

This commit is contained in:
Thomas Ruoff
2020-09-10 22:39:05 +02:00
parent feeec314d0
commit 17ca9e1ae4
2 changed files with 3 additions and 5 deletions

View File

@@ -14,14 +14,12 @@ export default function Contact() {
name="purpose" name="purpose"
value={purpose} value={purpose}
onChange={onChangeEvent} onChange={onChangeEvent}
required
/> />
<Input <Input
label="Ziel der Fahrt" label="Ziel der Fahrt"
name="destination" name="destination"
value={destination} value={destination}
onChange={onChangeEvent} onChange={onChangeEvent}
required
/> />
<Input label="Verein" name="org" value={org} onChange={onChangeEvent} /> <Input label="Verein" name="org" value={org} onChange={onChangeEvent} />
</> </>

View File

@@ -12,9 +12,9 @@ export interface BookingDocument
startDate: Date startDate: Date
endDate: Date endDate: Date
status: BOOKING_STATUS status: BOOKING_STATUS
purpose: string purpose?: string
org: string org?: string
destination: string destination?: string
days?: string[] days?: string[]
} }