Skip to content

Commit

Permalink
Fixed some dumb stuff (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaten authored Nov 27, 2022
1 parent f01f044 commit b090ebd
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions parkshark/src/components/Listings/bookingForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,7 @@ useEffect( () => {
if(!hasBooked) {
return (
<div className={"booking-form-container"}>
<button onClick={submitBooking}>Hi</button>
<form onSubmit={submitBooking}>
<label>
<Container>
<div>
<p>Date</p>
<Calendar
onChange={(value) => {
Expand All @@ -184,9 +181,8 @@ useEffect( () => {
tileDisabled={isAvailable}
selectRange={true}
/>
</Container>
</label>
<label>
</div>
<div>
<p>Arrival Time</p>
<TextField
type={"time"}
Expand All @@ -199,17 +195,13 @@ useEffect( () => {
name={"departureTime"}
error={isInError(departureTime)}
onChange={(event) => setDepartureTime(event.target.value)}/>
</label>
<label>
<p>Placeholder for submission error</p>
</label>
<label>
</div>
<div>
{priceLine()}
</label>
<label>
<button type={"submit"}>Book!</button>
</label>
</form>
</div>
<div>
<button onClick={submitBooking}>Book!</button>
</div>
</div>
)
}
Expand Down

0 comments on commit b090ebd

Please sign in to comment.