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 <wollencarina@gmail.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
This commit is contained in:
Carina Wollendorfer
2022-10-27 09:53:13 +00:00
committed by GitHub
co-authored by CarinaWolli Bailey Pumfleet
parent 8c76da8d79
commit b6ae4529e9
3 changed files with 12 additions and 3 deletions
@@ -812,7 +812,7 @@ const BookingPage = ({
<label
htmlFor="smsReminderNumber"
className="block text-sm font-medium text-gray-700 dark:text-white">
{t("number_for_sms_reminders")}
{t("number_sms_notifications")}
</label>
<div className="mt-1">
<PhoneInput<BookingFormValues>
+9
View File
@@ -427,6 +427,14 @@ export default function Success(props: SuccessProps) {
</>
);
})}
{bookingInfo?.smsReminderNumber && (
<>
<div className="mt-9 font-medium">{t("number_sms_notifications")}</div>
<div className="col-span-2 mb-2 mt-9">
<p>{bookingInfo.smsReminderNumber}</p>
</div>
</>
)}
</div>
</div>
{!needsConfirmation &&
@@ -857,6 +865,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
uid: true,
description: true,
customInputs: true,
smsReminderNumber: true,
user: {
select: {
id: true,
@@ -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)"
}