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"
value={purpose}
onChange={onChangeEvent}
required
/>
<Input
label="Ziel der Fahrt"
name="destination"
value={destination}
onChange={onChangeEvent}
required
/>
<Input label="Verein" name="org" value={org} onChange={onChangeEvent} />
</>

View File

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