diff --git a/packages/features/form-builder/FormBuilder.tsx b/packages/features/form-builder/FormBuilder.tsx index b5c3b18ad3..448ff61f70 100644 --- a/packages/features/form-builder/FormBuilder.tsx +++ b/packages/features/form-builder/FormBuilder.tsx @@ -425,10 +425,14 @@ export const FormBuilder = function FormBuilder({ fieldIndex: -1, }) }> - - -
+ +
+
{ const type = data.type || "text"; @@ -540,14 +544,14 @@ export const FormBuilder = function FormBuilder({ ); }} /> - - {t("cancel")} - -
+ + {t("cancel")} + +
diff --git a/packages/ui/components/dialog/Dialog.tsx b/packages/ui/components/dialog/Dialog.tsx index eb5222ce27..04531e68f5 100644 --- a/packages/ui/components/dialog/Dialog.tsx +++ b/packages/ui/components/dialog/Dialog.tsx @@ -1,6 +1,6 @@ import * as DialogPrimitive from "@radix-ui/react-dialog"; import { useRouter } from "next/router"; -import type { PropsWithChildren, ReactNode } from "react"; +import type { ReactNode } from "react"; import React, { useState } from "react"; import classNames from "@calcom/lib/classNames"; @@ -93,7 +93,7 @@ export const DialogContent = React.forwardRef -
{children}
+
{children}
)} {type === "confirmation" && ( @@ -105,7 +105,7 @@ export const DialogContent = React.forwardRef -
{children}
+
{children}
)} @@ -134,10 +134,14 @@ export function DialogHeader(props: DialogHeaderProps) { ); } -// TODO: add divider -export function DialogFooter(props: PropsWithChildren<{ showDivider?: boolean }>) { +export function DialogFooter(props: { children: ReactNode; className?: string; showDivider?: boolean }) { return ( -
{props.children}
+
+ {props.showDivider &&
} +
+ {props.children} +
+
); }