fix: EventTypeSettings Checkbox booking field label (#23891)
This commit is contained in:
1 parent
a9d6fbd14d
commit
4f114ef8d3
3 files changed
+9
-3
No files matched your search
@@ -4,7 +4,7 @@ import type { SubmitHandler, UseFormReturn } from "react-hook-form";
|
||||
import { Controller, useFieldArray, useForm, useFormContext } from "react-hook-form";
|
||||
import type { z } from "zod";
|
||||
import { ZodError } from "zod";
|
||||
|
||||
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
|
||||
import { getCurrencySymbol } from "@calcom/app-store/_utils/payments/currencyConversions";
|
||||
import { Dialog } from "@calcom/features/components/controlled-dialog";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
@@ -572,6 +572,7 @@ function FieldEditDialog({
|
||||
paymentCurrency: string;
|
||||
}) {
|
||||
const { t } = useLocale();
|
||||
const isPlatform = useIsPlatform();
|
||||
const fieldForm = useForm<RhfFormField>({
|
||||
defaultValues: dialog.data || {},
|
||||
//resolver: zodResolver(fieldSchema),
|
||||
@@ -649,7 +650,7 @@ function FieldEditDialog({
|
||||
{...fieldForm.register("disableOnPrefill", { setValueAs: Boolean })}
|
||||
/>
|
||||
<div>
|
||||
{formFieldType === "boolean" ? (
|
||||
{formFieldType === "boolean" && !isPlatform ? (
|
||||
<CheckboxFieldLabel fieldForm={fieldForm} />
|
||||
) : (
|
||||
<InputField
|
||||
|
||||
Reference in new issue
Block a user