From ef3ad36c2c76a10da0b0099ab2455702dbb0d740 Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Wed, 30 Nov 2022 15:53:28 -0300 Subject: [PATCH] Fixed listing formatting and save for custom inputs (#5795) * Fixed formatting and save * Additional tweaks Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/components/eventtype/CustomInputTypeForm.tsx | 6 ++++-- apps/web/components/eventtype/EventAdvancedTab.tsx | 4 ++-- apps/web/pages/booking/[uid].tsx | 6 +++--- packages/ui/v2/modules/event-types/CustomInputItem.tsx | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/web/components/eventtype/CustomInputTypeForm.tsx b/apps/web/components/eventtype/CustomInputTypeForm.tsx index 08a2b3fd5d..07510bcaa1 100644 --- a/apps/web/components/eventtype/CustomInputTypeForm.tsx +++ b/apps/web/components/eventtype/CustomInputTypeForm.tsx @@ -40,7 +40,7 @@ const CustomInputTypeForm: FC = (props) => { }; return ( -
+
); diff --git a/apps/web/components/eventtype/EventAdvancedTab.tsx b/apps/web/components/eventtype/EventAdvancedTab.tsx index c5405451f5..6a885e354e 100644 --- a/apps/web/components/eventtype/EventAdvancedTab.tsx +++ b/apps/web/components/eventtype/EventAdvancedTab.tsx @@ -132,7 +132,7 @@ export const EventAdvancedTab = ({ eventType, team }: Pick -
    +
      {customInputs.map((customInput: EventTypeCustomInput, idx: number) => ( - Add an input + {t("add_input")} )} diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx index b2f1b57211..8a883b17d5 100644 --- a/apps/web/pages/booking/[uid].tsx +++ b/apps/web/pages/booking/[uid].tsx @@ -411,7 +411,7 @@ export default function Success(props: SuccessProps) { {(bookingInfo?.user || bookingInfo?.attendees) && ( <>
      {t("who")}
      -
      +
      <> {bookingInfo?.user && (
      @@ -458,8 +458,8 @@ export default function Success(props: SuccessProps) { <> {customInput !== "" && ( <> -
      {key}
      -
      +
      {key}
      +
      {typeof customInput === "boolean" ? (

      {customInput ? "true" : "false"}

      ) : ( diff --git a/packages/ui/v2/modules/event-types/CustomInputItem.tsx b/packages/ui/v2/modules/event-types/CustomInputItem.tsx index 08808f8e8b..6ad2b6b1b9 100644 --- a/packages/ui/v2/modules/event-types/CustomInputItem.tsx +++ b/packages/ui/v2/modules/event-types/CustomInputItem.tsx @@ -13,7 +13,7 @@ type Props = { function CustomInputItem({ required, deleteOnClick, editOnClick, type, question }: Props) { const { t } = useLocale(); return ( -
    • +
    • {question}