Update booking page buttons to match v2 (#4474)

This commit is contained in:
Bailey Pumfleet authored and GitHub committed 2022-09-14 17:56:54 +00:00
1 parent 34d417515c
commit d302dc164d
2 files changed
+11 -11

No files matched your search

@@ -742,15 +742,6 @@ const BookingPage = ({
))} ))}
{!eventType.disableGuests && ( {!eventType.disableGuests && (
<div className="mb-4"> <div className="mb-4">
{!guestToggle && (
<label
onClick={() => setGuestToggle(!guestToggle)}
htmlFor="guests"
className="mb-1 block text-sm font-medium hover:cursor-pointer dark:text-white">
{/*<UserAddIcon className="inline-block w-5 h-5 mr-1 -mt-1" />*/}
{t("additional_guests")}
</label>
)}
{guestToggle && ( {guestToggle && (
<div> <div>
<label <label
@@ -858,8 +849,17 @@ const BookingPage = ({
</div> </div>
<div className="flex justify-end space-x-2 rtl:space-x-reverse"> <div className="flex justify-end space-x-2 rtl:space-x-reverse">
{!guestToggle && (
<Button
color="secondary"
onClick={() => setGuestToggle(!guestToggle)}
className="dark:bg-darkmodebrand dark:text-darkmodebrandcontrast mr-auto rounded-md">
<Icon.FiUserPlus className="mr-2" />
{t("additional_guests")}
</Button>
)}
<Button <Button
color="secondary" color="minimal"
type="button" type="button"
onClick={() => router.back()} onClick={() => router.back()}
// We override this for this component only for now - as we don't support darkmode everywhere in the app // We override this for this component only for now - as we don't support darkmode everywhere in the app
@@ -447,7 +447,7 @@
"sunday": "Sunday", "sunday": "Sunday",
"all_booked_today": "All booked today.", "all_booked_today": "All booked today.",
"slots_load_fail": "Could not load the available time slots.", "slots_load_fail": "Could not load the available time slots.",
"additional_guests": "+ Additional Guests", "additional_guests": "Add guest",
"your_name": "Your name", "your_name": "Your name",
"email_address": "Email address", "email_address": "Email address",
"enter_valid_email": "Please enter a valid email", "enter_valid_email": "Please enter a valid email",