From b6ae4529e93f3022fd83c6b8a2a71468a08596ae Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:53:13 +0200 Subject: [PATCH] Adds number for sms notifications from workflows to /success (#5210) * add sms notification phone number to success page * remove duplicate translation * add non breaking space between sms and notifications Co-authored-by: CarinaWolli Co-authored-by: Bailey Pumfleet --- apps/web/components/booking/pages/BookingPage.tsx | 2 +- apps/web/pages/success.tsx | 9 +++++++++ apps/web/public/static/locales/en/common.json | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index 6d5d0b5653..37dbda3776 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -812,7 +812,7 @@ const BookingPage = ({
diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx index a66f561ac2..f2580a0fc3 100644 --- a/apps/web/pages/success.tsx +++ b/apps/web/pages/success.tsx @@ -427,6 +427,14 @@ export default function Success(props: SuccessProps) { ); })} + {bookingInfo?.smsReminderNumber && ( + <> +
{t("number_sms_notifications")}
+
+

{bookingInfo.smsReminderNumber}

+
+ + )}
{!needsConfirmation && @@ -857,6 +865,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { uid: true, description: true, customInputs: true, + smsReminderNumber: true, user: { select: { id: true, diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index f1fa89331d..ddd9c157a9 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1010,7 +1010,6 @@ "app_removed_successfully": "App removed successfully", "error_removing_app": "Error removing app", "web_conference": "Web conference", - "number_for_sms_reminders": "Phone number (for SMS reminders)", "requires_confirmation": "Requires confirmation", "nr_event_type_one": "{{count}} event type", "nr_event_type_other": "{{count}} event types", @@ -1336,5 +1335,6 @@ "limit_future_bookings":"Limit future bookings", "limit_future_bookings_description":"Limit how far in the future this event can be booked", "no_event_types": "No event types setup", - "no_event_types_description": "{{name}} has not setup any event types for you to book." + "no_event_types_description": "{{name}} has not setup any event types for you to book.", + "number_sms_notifications": "Phone number (SMS\u00a0notifications)" }