From dbca3ee780ca4f8edadd3ddbaa75c71df4dcbb98 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Sat, 3 Sep 2022 19:14:30 +0200 Subject: [PATCH] fixed add a location button (#4137) --- .../web/components/v2/eventtype/EventSetupTab.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/apps/web/components/v2/eventtype/EventSetupTab.tsx b/apps/web/components/v2/eventtype/EventSetupTab.tsx index 92d17dcbf3..d7ef5be354 100644 --- a/apps/web/components/v2/eventtype/EventSetupTab.tsx +++ b/apps/web/components/v2/eventtype/EventSetupTab.tsx @@ -1,6 +1,5 @@ import autoAnimate from "@formkit/auto-animate"; import { zodResolver } from "@hookform/resolvers/zod"; -import { SchedulingType } from "@prisma/client"; import { isValidPhoneNumber } from "libphonenumber-js"; import { EventTypeSetupInfered, FormValues } from "pages/v2/event-types/[type]"; import { useEffect, useRef, useState } from "react"; @@ -8,10 +7,10 @@ import { Controller, useForm, useFormContext } from "react-hook-form"; import { z } from "zod"; import { getEventLocationType, EventLocationType } from "@calcom/app-store/locations"; -import { CAL_URL, WEBAPP_URL } from "@calcom/lib/constants"; +import { CAL_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Icon } from "@calcom/ui/Icon"; -import { Select, Label, TextField } from "@calcom/ui/v2"; +import { Select, Label, TextField, Button } from "@calcom/ui/v2"; import { slugify } from "@lib/slugify"; @@ -171,13 +170,9 @@ export const EventSetupTab = ( })} {validLocations.length > 0 && validLocations.length !== locationOptions.length && (
  • - +
  • )}