From 91909281bc60be741b32e254e6c9900cb9edf376 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 21 Sep 2022 22:37:31 +0100 Subject: [PATCH] Fixes minimumBookingNotice (#4656) --- .../v2/eventtype/EventLimitsTab.tsx | 37 ++++--------------- 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/apps/web/components/v2/eventtype/EventLimitsTab.tsx b/apps/web/components/v2/eventtype/EventLimitsTab.tsx index f639da23d0..9b3710bebb 100644 --- a/apps/web/components/v2/eventtype/EventLimitsTab.tsx +++ b/apps/web/components/v2/eventtype/EventLimitsTab.tsx @@ -6,7 +6,7 @@ import { useFormContext, Controller, useWatch } from "react-hook-form"; import { classNames } from "@calcom/lib"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { PeriodType } from "@calcom/prisma/client"; -import { Select, Switch, Label, Input } from "@calcom/ui/v2"; +import { Select, Switch, Label, Input, TextField } from "@calcom/ui/v2"; import DateRangePicker from "@calcom/ui/v2/core/form/date-range-picker/DateRangePicker"; export const EventLimitsTab = (props: Pick) => { @@ -113,35 +113,12 @@ export const EventLimitsTab = (props: Pick)
- - { - const minimumBookingOptions = [ - { - label: t("event_buffer_default"), - value: 0, - }, - ...[5, 10, 15, 20, 30, 45, 60, 90, 120].map((minutes) => ({ - label: minutes + " " + t("minutes"), - value: minutes, - })), - ]; - return ( -