From ff78e660512d0fb6cb98cd0011facb3edc9dc825 Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Thu, 6 Oct 2022 13:32:11 +0100 Subject: [PATCH] Add successful booking redirect URL to booking page (#4871) * Add redirect URL field and switch * Remove and add new translation for description Co-authored-by: Bailey Pumfleet --- .../v2/eventtype/EventAdvancedTab.tsx | 43 +++++++++++++++++++ apps/web/public/static/locales/en/common.json | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/apps/web/components/v2/eventtype/EventAdvancedTab.tsx b/apps/web/components/v2/eventtype/EventAdvancedTab.tsx index 230a2f83f3..d9da9097bd 100644 --- a/apps/web/components/v2/eventtype/EventAdvancedTab.tsx +++ b/apps/web/components/v2/eventtype/EventAdvancedTab.tsx @@ -40,6 +40,7 @@ export const EventAdvancedTab = ({ eventType, team }: Pick( @@ -248,6 +249,48 @@ export const EventAdvancedTab = ({ eventType, team }: Pick
+ + ( + <> +
+ { + setRedirectUrlVisible(e); + onChange(e ? value : ""); + }} + /> +
+ + {t("redirect_success_booking")} + + + {t("redirect_url_description")} + +
+
+ {redirectUrlVisible && ( +
+ +
+ )} + + )} + /> +