diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index 2f662f3df6..dfb2b443dd 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -17,6 +17,7 @@ import { import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { RouterOutputs } from "@calcom/trpc/react"; import { trpc } from "@calcom/trpc/react"; +import { Input } from "@calcom/ui"; import { Button, Dialog, DialogContent, DialogFooter, Form, PhoneInput } from "@calcom/ui"; import { FiMapPin } from "@calcom/ui/components/icon"; @@ -52,7 +53,7 @@ const LocationInput = (props: { const { control } = useFormContext() as typeof locationFormMethods; if (eventLocationType?.organizerInputType === "text") { return ( - + ); } else if (eventLocationType?.organizerInputType === "phone") { return ( @@ -171,7 +172,6 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { id="locationInput" placeholder={t(eventLocationType.organizerInputPlaceholder || "")} required - className="block w-full rounded-sm border-gray-300 text-sm" // eslint-disable-next-line @typescript-eslint/no-non-null-assertion defaultValue={ defaultLocation ? defaultLocation[eventLocationType.defaultValueVariable] : undefined diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx index c63efe92a0..3dc78075c9 100644 --- a/apps/web/components/eventtype/EventSetupTab.tsx +++ b/apps/web/components/eventtype/EventSetupTab.tsx @@ -198,8 +198,16 @@ export const EventSetupTab = ( return (
  • { + locationFormMethods.setValue("locationType", location.type); + locationFormMethods.unregister("locationLink"); + locationFormMethods.unregister("locationAddress"); + locationFormMethods.unregister("locationPhoneNumber"); + setEditingLocationType(location.type); + openLocationModal(location.type); + }} key={`${location.type}${index}`} - className="mb-2 rounded-md border border-gray-300 py-1.5 px-2"> + className="mb-2 rounded-md border border-gray-300 py-1.5 px-2 hover:cursor-pointer">
    }> -
    +
    -
    + className="p-6 sm:flex sm:p-0"> +
    {date && ( -
    +

    {t("date_overrides_dialog_which_hours")}

    @@ -150,7 +150,7 @@ const DateOverrideForm = ({ data-testid="date-override-mark-unavailable" />
    -
    +