From 0b8eb3b8ec3806980f7ae0c7e5722dc2ad0b93f4 Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Thu, 8 Sep 2022 18:40:09 +0100 Subject: [PATCH] Modal updates (#4289) Co-authored-by: Peer Richelsen --- .../v2/eventtype/EditLocationDialog.tsx | 2 +- .../v2/settings/EnableTwoFactorModal.tsx | 26 +++++++------------ .../routing_forms/components/FormActions.tsx | 18 ++++++------- packages/ui/v2/core/form/fields.tsx | 4 ++- 4 files changed, 22 insertions(+), 28 deletions(-) diff --git a/apps/web/components/v2/eventtype/EditLocationDialog.tsx b/apps/web/components/v2/eventtype/EditLocationDialog.tsx index cc763ed04e..0c878a8eaa 100644 --- a/apps/web/components/v2/eventtype/EditLocationDialog.tsx +++ b/apps/web/components/v2/eventtype/EditLocationDialog.tsx @@ -225,6 +225,7 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { )}
{ const { locationType: newLocation, displayLocationPublicly } = values; @@ -284,7 +285,6 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { : locationOptions } isSearchable={false} - className="my-4 block w-full min-w-0 flex-1 rounded-md border border-gray-300 text-sm" onChange={(val) => { if (val) { locationFormMethods.setValue("locationType", val.value); diff --git a/apps/web/components/v2/settings/EnableTwoFactorModal.tsx b/apps/web/components/v2/settings/EnableTwoFactorModal.tsx index 674c57910a..002b8fbd99 100644 --- a/apps/web/components/v2/settings/EnableTwoFactorModal.tsx +++ b/apps/web/components/v2/settings/EnableTwoFactorModal.tsx @@ -5,7 +5,7 @@ import { ErrorCode } from "@calcom/lib/auth"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import Button from "@calcom/ui/v2/core/Button"; import { Dialog, DialogContent } from "@calcom/ui/v2/core/Dialog"; -import { Form } from "@calcom/ui/v2/core/form/fields"; +import { Form, TextField } from "@calcom/ui/v2/core/form/fields"; import TwoFactor from "@components/auth/TwoFactor"; @@ -140,21 +140,15 @@ const EnableTwoFactorModal = ({ onEnable, onCancel, open, onOpenChange }: Enable
- -
- setPassword(e.currentTarget.value)} - className="block w-full rounded-sm border-gray-300 text-sm" - /> -
- + setPassword(e.currentTarget.value)} + /> {errorMessage &&

{errorMessage}

}
diff --git a/packages/app-store/ee/routing_forms/components/FormActions.tsx b/packages/app-store/ee/routing_forms/components/FormActions.tsx index 2970c2db8e..78780751e3 100644 --- a/packages/app-store/ee/routing_forms/components/FormActions.tsx +++ b/packages/app-store/ee/routing_forms/components/FormActions.tsx @@ -23,6 +23,7 @@ import { showToast, Switch, TextField, + TextAreaField, } from "@calcom/ui/v2"; import { EmbedButton, EmbedDialog } from "@components/Embed"; @@ -101,16 +102,13 @@ function NewFormDialog({ appUrl }: { appUrl: string }) {
-

Description

-
-