From 079a920c2c804bb3130ee2b2524f64925af3fd5b Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Wed, 29 Sep 2021 16:36:29 +0100 Subject: [PATCH] CTA on success page (#818) --- components/booking/pages/BookingPage.tsx | 1 + components/ui/Button.tsx | 4 ++-- pages/success.tsx | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/components/booking/pages/BookingPage.tsx b/components/booking/pages/BookingPage.tsx index 27027221..da44475d 100644 --- a/components/booking/pages/BookingPage.tsx +++ b/components/booking/pages/BookingPage.tsx @@ -144,6 +144,7 @@ const BookingPage = (props: BookingPageProps) => { user: props.profile.slug, reschedule: !!rescheduleUid, name: payload.name, + email: payload.email, }; if (payload["location"]) { diff --git a/components/ui/Button.tsx b/components/ui/Button.tsx index 554f49be..54c00099 100644 --- a/components/ui/Button.tsx +++ b/components/ui/Button.tsx @@ -60,7 +60,7 @@ export const Button = forwardRef) {!props.hideBranding && (
Create your own booking link with Cal.com + +
{ + e.preventDefault(); + router.push(`https://cal.com/signup?email=` + (e as any).target.email.value); + }} + className="flex mt-4"> + + +
)}