Modal updates (#4289)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
sean-brydonandPeer Richelsen authored and GitHub committed 2022-09-08 19:40:09 +02:00
1 parent 38ccd7b159
commit 0b8eb3b8ec
4 files changed
+22 -28

No files matched your search

@@ -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 }) {
<div className="mt-3 space-y-4">
<TextField label={t("title")} required placeholder="A Routing Form" {...register("name")} />
<div className="mb-5">
<h3 className="mb-2 text-base font-medium leading-6 text-gray-900">Description</h3>
<div className="w-full">
<textarea
id="description"
data-testid="description"
className="block w-full rounded-sm border-gray-300 text-sm "
placeholder="Form Description"
{...register("description")}
/>
</div>
<TextAreaField
id="description"
label={t("description")}
{...register("description")}
data-testid="description"
placeholder="Form Description"
/>
</div>
</div>
<div className="mt-8 flex flex-row-reverse gap-x-2">
+3 -1
View File
@@ -34,7 +34,9 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(pro
export function Label(props: JSX.IntrinsicElements["label"]) {
return (
<label {...props} className={classNames("block pb-2 text-sm font-medium text-gray-700", props.className)}>
<label
{...props}
className={classNames("block pb-2 text-sm font-medium leading-none text-gray-700", props.className)}>
{props.children}
</label>
);