diff --git a/apps/web/components/booking/CancelBooking.tsx b/apps/web/components/booking/CancelBooking.tsx index 39d33488f168f..fc31685f1ba44 100644 --- a/apps/web/components/booking/CancelBooking.tsx +++ b/apps/web/components/booking/CancelBooking.tsx @@ -29,7 +29,7 @@ export default function CancelBooking(props: Props) { const [cancellationReason, setCancellationReason] = useState(""); const { t } = useLocale(); const router = useRouter(); - const { booking, profile, team, allRemainingBookings } = props; + const { booking, allRemainingBookings } = props; const [loading, setLoading] = useState(false); const telemetry = useTelemetry(); const [error, setError] = useState(booking ? null : t("booking_already_cancelled")); diff --git a/apps/web/components/eventtype/EventTeamWebhooksTab.tsx b/apps/web/components/eventtype/EventTeamWebhooksTab.tsx index 28f49b8939b3f..71fc7f0c19b92 100644 --- a/apps/web/components/eventtype/EventTeamWebhooksTab.tsx +++ b/apps/web/components/eventtype/EventTeamWebhooksTab.tsx @@ -1,4 +1,4 @@ -import { EventTypeSetupProps, FormValues } from "pages/event-types/[type]"; +import { EventTypeSetupProps } from "pages/event-types/[type]"; import { useState } from "react"; import { TbWebhook } from "react-icons/tb"; diff --git a/apps/web/components/getting-started/components/ConnectedCalendarItem.tsx b/apps/web/components/getting-started/components/ConnectedCalendarItem.tsx index cc57b136ea14f..2fbb4d2cd4e38 100644 --- a/apps/web/components/getting-started/components/ConnectedCalendarItem.tsx +++ b/apps/web/components/getting-started/components/ConnectedCalendarItem.tsx @@ -1,5 +1,3 @@ -import { useLocale } from "@calcom/lib/hooks/useLocale"; - import { CalendarSwitch } from "./CalendarSwitch"; interface IConnectedCalendarItem { @@ -21,7 +19,7 @@ interface IConnectedCalendarItem { const ConnectedCalendarItem = (prop: IConnectedCalendarItem) => { const { name, logo, externalId, calendars, integrationType } = prop; - const { t } = useLocale(); + return ( <>
diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx index 49502146b7f5d..8175f7021f633 100644 --- a/apps/web/pages/[user]/[type].tsx +++ b/apps/web/pages/[user]/[type].tsx @@ -1,6 +1,5 @@ import MarkdownIt from "markdown-it"; import { GetStaticPaths, GetStaticPropsContext } from "next"; -import { JSONObject } from "superjson/dist/types"; import { z } from "zod"; import { privacyFilteredLocations, LocationObject } from "@calcom/app-store/locations"; diff --git a/apps/web/pages/[user]/book.tsx b/apps/web/pages/[user]/book.tsx index 817540e6f6fcc..cd52165c8cebb 100644 --- a/apps/web/pages/[user]/book.tsx +++ b/apps/web/pages/[user]/book.tsx @@ -1,5 +1,4 @@ import { GetServerSidePropsContext } from "next"; -import { JSONObject } from "superjson/dist/types"; import { LocationObject, privacyFilteredLocations } from "@calcom/app-store/locations"; import { parseRecurringEvent } from "@calcom/lib"; diff --git a/apps/web/pages/api/auth/setup.ts b/apps/web/pages/api/auth/setup.ts index 659516a495b45..c44caec0596ac 100644 --- a/apps/web/pages/api/auth/setup.ts +++ b/apps/web/pages/api/auth/setup.ts @@ -1,5 +1,5 @@ import { IdentityProvider } from "@prisma/client"; -import { NextApiRequest, NextApiResponse } from "next"; +import { NextApiRequest } from "next"; import z from "zod"; import { isPasswordValid } from "@calcom/lib/auth"; @@ -50,7 +50,7 @@ async function handler(req: NextApiRequest) { }, }); - return { message: "First admin user created successfuly." }; + return { message: "First admin user created successfully." }; } export default defaultHandler({ diff --git a/apps/web/pages/d/[link]/book.tsx b/apps/web/pages/d/[link]/book.tsx index 6ad36d1ed0cb5..58e1efcab62b8 100644 --- a/apps/web/pages/d/[link]/book.tsx +++ b/apps/web/pages/d/[link]/book.tsx @@ -1,5 +1,4 @@ import { GetServerSidePropsContext } from "next"; -import { JSONObject } from "superjson/dist/types"; import { parseRecurringEvent } from "@calcom/lib"; import prisma from "@calcom/prisma"; diff --git a/apps/web/pages/event-types/[type]/index.tsx b/apps/web/pages/event-types/[type]/index.tsx index f5ec3d372a104..bbd9fd9118fea 100644 --- a/apps/web/pages/event-types/[type]/index.tsx +++ b/apps/web/pages/event-types/[type]/index.tsx @@ -10,8 +10,6 @@ import { z } from "zod"; import { EventLocationType } from "@calcom/core/location"; import { validateBookingLimitOrder } from "@calcom/lib"; import { CAL_URL } from "@calcom/lib/constants"; -import convertToNewDurationType from "@calcom/lib/convertToNewDurationType"; -import findDurationType from "@calcom/lib/findDurationType"; import getEventTypeById from "@calcom/lib/getEventTypeById"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery"; diff --git a/apps/web/pages/settings/billing/index.tsx b/apps/web/pages/settings/billing/index.tsx index cf5765438a3a9..528c47e1370cc 100644 --- a/apps/web/pages/settings/billing/index.tsx +++ b/apps/web/pages/settings/billing/index.tsx @@ -7,7 +7,6 @@ import { getLayout } from "@calcom/features/settings/layouts/SettingsLayout"; import { classNames } from "@calcom/lib"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { trpc } from "@calcom/trpc/react"; import { Button, Meta } from "@calcom/ui"; import { FiExternalLink } from "@calcom/ui/components/icon"; @@ -37,7 +36,6 @@ const CtaRow = ({ title, description, className, children }: CtaRowProps) => { const BillingView = () => { const { t } = useLocale(); - const { data: user } = trpc.viewer.me.useQuery(); const [, loadChat] = useChat(); const [showChat, setShowChat] = useState(false); const router = useRouter(); diff --git a/apps/web/pages/settings/my-account/appearance.tsx b/apps/web/pages/settings/my-account/appearance.tsx index 54e0a53c1a080..aca4049caf849 100644 --- a/apps/web/pages/settings/my-account/appearance.tsx +++ b/apps/web/pages/settings/my-account/appearance.tsx @@ -1,5 +1,4 @@ import { GetServerSidePropsContext } from "next"; -import { useSession } from "next-auth/react"; import { Controller, useForm } from "react-hook-form"; import { getLayout } from "@calcom/features/settings/layouts/SettingsLayout"; @@ -47,7 +46,6 @@ const SkeletonLoader = ({ title, description }: { title: string; description: st const AppearanceView = () => { const { t } = useLocale(); - const session = useSession(); const utils = trpc.useContext(); const { data: user, isLoading } = trpc.viewer.me.useQuery(); diff --git a/apps/web/pages/team/[slug]/book.tsx b/apps/web/pages/team/[slug]/book.tsx index e225b75724c35..577c86ea1e868 100644 --- a/apps/web/pages/team/[slug]/book.tsx +++ b/apps/web/pages/team/[slug]/book.tsx @@ -1,5 +1,4 @@ import { GetServerSidePropsContext } from "next"; -import { JSONObject } from "superjson/dist/types"; import { LocationObject, privacyFilteredLocations } from "@calcom/app-store/locations"; import { parseRecurringEvent } from "@calcom/lib"; diff --git a/apps/web/playwright/auth/auth-index.e2e.ts b/apps/web/playwright/auth/auth-index.e2e.ts index a1f4a36328eda..fac393621f392 100644 --- a/apps/web/playwright/auth/auth-index.e2e.ts +++ b/apps/web/playwright/auth/auth-index.e2e.ts @@ -1,7 +1,3 @@ -import { expect } from "@playwright/test"; - -import { WEBAPP_URL } from "@calcom/lib/constants"; - import { test } from "../lib/fixtures"; import { todo } from "../lib/testUtils"; diff --git a/apps/web/playwright/trial.e2e.ts b/apps/web/playwright/trial.e2e.ts index ea54ae993a7cd..b0898b7250937 100644 --- a/apps/web/playwright/trial.e2e.ts +++ b/apps/web/playwright/trial.e2e.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { test } from "@playwright/test"; import { todo } from "./lib/testUtils"; diff --git a/packages/app-store/around/components/InstallAppButton.tsx b/packages/app-store/around/components/InstallAppButton.tsx index 331b0a9b7a02c..454d10eb7b319 100644 --- a/packages/app-store/around/components/InstallAppButton.tsx +++ b/packages/app-store/around/components/InstallAppButton.tsx @@ -1,7 +1,6 @@ import type { InstallAppButtonProps } from "@calcom/app-store/types"; import useAddAppMutation from "../../_utils/useAddAppMutation"; -import appConfig from "../config.json"; export default function InstallAppButton(props: InstallAppButtonProps) { const mutation = useAddAppMutation("around_video"); diff --git a/packages/app-store/giphy/api/get.ts b/packages/app-store/giphy/api/get.ts index 2afd608615c08..8cee03b9a8948 100644 --- a/packages/app-store/giphy/api/get.ts +++ b/packages/app-store/giphy/api/get.ts @@ -1,8 +1,6 @@ import type { NextApiRequest, NextApiResponse } from "next"; import { z, ZodError } from "zod"; -import prisma from "@calcom/prisma"; - import { GiphyManager } from "../lib"; const giphyUrlRegexp = new RegExp("^https://(.*).giphy.com/media/(.*)/giphy.gif(.*)"); diff --git a/packages/app-store/googlevideo/components/InstallAppButton.tsx b/packages/app-store/googlevideo/components/InstallAppButton.tsx index dff685c3b7fb3..8e40c4d96b3ac 100644 --- a/packages/app-store/googlevideo/components/InstallAppButton.tsx +++ b/packages/app-store/googlevideo/components/InstallAppButton.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect } from "react"; +import { useState } from "react"; import type { InstallAppButtonProps } from "@calcom/app-store/types"; import useApp from "@calcom/lib/hooks/useApp"; diff --git a/packages/app-store/riverside/components/InstallAppButton.tsx b/packages/app-store/riverside/components/InstallAppButton.tsx index 683c5485e8b42..59c84fda451e2 100644 --- a/packages/app-store/riverside/components/InstallAppButton.tsx +++ b/packages/app-store/riverside/components/InstallAppButton.tsx @@ -1,7 +1,6 @@ import type { InstallAppButtonProps } from "@calcom/app-store/types"; import useAddAppMutation from "../../_utils/useAddAppMutation"; -import appConfig from "../config.json"; export default function InstallAppButton(props: InstallAppButtonProps) { const mutation = useAddAppMutation("riverside_video"); diff --git a/packages/app-store/salesforce/api/callback.ts b/packages/app-store/salesforce/api/callback.ts index 178447b9b4957..2eadc25f21847 100644 --- a/packages/app-store/salesforce/api/callback.ts +++ b/packages/app-store/salesforce/api/callback.ts @@ -11,7 +11,6 @@ import getInstalledAppPath from "../../_utils/getInstalledAppPath"; let consumer_key = ""; let consumer_secret = ""; -const instance_url = ""; export default async function handler(req: NextApiRequest, res: NextApiResponse) { const { code } = req.query; diff --git a/packages/app-store/salesforce/lib/CalendarService.ts b/packages/app-store/salesforce/lib/CalendarService.ts index 75798c1dc8351..4d23c11d0acc7 100644 --- a/packages/app-store/salesforce/lib/CalendarService.ts +++ b/packages/app-store/salesforce/lib/CalendarService.ts @@ -5,7 +5,6 @@ import { getLocation } from "@calcom/lib/CalEventParser"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { HttpError } from "@calcom/lib/http-error"; import logger from "@calcom/lib/logger"; -import prisma from "@calcom/prisma"; import type { Calendar, CalendarEvent, diff --git a/packages/app-store/sendgrid/lib/CalendarService.ts b/packages/app-store/sendgrid/lib/CalendarService.ts index 17e69a623bce5..162eeff94d945 100644 --- a/packages/app-store/sendgrid/lib/CalendarService.ts +++ b/packages/app-store/sendgrid/lib/CalendarService.ts @@ -75,13 +75,13 @@ export default class CloseComCalendarService implements Calendar { async updateEvent(uid: string, event: CalendarEvent): Promise { // Unless we want to be able to support modifying an event to add more attendees - // to have them created in Sendgrid, ingoring this use case for now + // to have them created in Sendgrid, ignoring this use case for now return Promise.resolve(); } async deleteEvent(uid: string): Promise { // Unless we want to delete the contact in Sendgrid once the event - // is deleted just ingoring this use case for now + // is deleted just ignoring this use case for now return Promise.resolve(); } diff --git a/packages/app-store/vital/api/webhook.ts b/packages/app-store/vital/api/webhook.ts index ed518e0748bde..fcd3f2c0e965e 100644 --- a/packages/app-store/vital/api/webhook.ts +++ b/packages/app-store/vital/api/webhook.ts @@ -12,7 +12,7 @@ import prisma from "@calcom/prisma"; import { Reschedule } from "../lib"; import { initVitalClient, vitalEnv } from "../lib/client"; -// @Note: not being used anymore but left as example +/* @Note: not being used anymore but left as example const getOuraSleepScore = async (user_id: string, bedtime_start: Date) => { const vitalClient = await initVitalClient(); if (!vitalClient) throw Error("Missing vital client"); @@ -22,6 +22,7 @@ const getOuraSleepScore = async (user_id: string, bedtime_start: Date) => { } return +sleep_data.sleep[0].data.score; }; +*/ /** * This is will generate a user token for a client_user_id` diff --git a/packages/app-store/vital/lib/reschedule.ts b/packages/app-store/vital/lib/reschedule.ts index 8d253526ba373..169ecf8b55a4e 100644 --- a/packages/app-store/vital/lib/reschedule.ts +++ b/packages/app-store/vital/lib/reschedule.ts @@ -1,7 +1,6 @@ import { Booking, BookingReference, BookingStatus, User } from "@prisma/client"; import type { TFunction } from "next-i18next"; -import EventManager from "@calcom/core/EventManager"; import { CalendarEventBuilder } from "@calcom/core/builders/CalendarEvent/builder"; import { CalendarEventDirector } from "@calcom/core/builders/CalendarEvent/director"; import { deleteMeeting } from "@calcom/core/videoClient"; diff --git a/packages/app-store/wipemycalother/lib/reschedule.ts b/packages/app-store/wipemycalother/lib/reschedule.ts index 74d199229a5d9..cd423846c19f5 100644 --- a/packages/app-store/wipemycalother/lib/reschedule.ts +++ b/packages/app-store/wipemycalother/lib/reschedule.ts @@ -1,7 +1,6 @@ import { Booking, BookingReference, BookingStatus, User } from "@prisma/client"; import type { TFunction } from "next-i18next"; -import EventManager from "@calcom/core/EventManager"; import { CalendarEventBuilder } from "@calcom/core/builders/CalendarEvent/builder"; import { CalendarEventDirector } from "@calcom/core/builders/CalendarEvent/director"; import { deleteMeeting } from "@calcom/core/videoClient"; diff --git a/packages/embeds/embed-core/src/ModalBox/ModalBox.ts b/packages/embeds/embed-core/src/ModalBox/ModalBox.ts index 8da0e864669f6..a592566e03649 100644 --- a/packages/embeds/embed-core/src/ModalBox/ModalBox.ts +++ b/packages/embeds/embed-core/src/ModalBox/ModalBox.ts @@ -55,7 +55,7 @@ export class ModalBox extends HTMLElement { once: true, } ); - this.shadowRoot!.host.addEventListener("click", (e) => { + this.shadowRoot!.host.addEventListener("click", () => { this.close(); }); diff --git a/packages/embeds/embed-core/src/embed-iframe.ts b/packages/embeds/embed-core/src/embed-iframe.ts index 1874e4392eadb..24e4dd017e8bd 100644 --- a/packages/embeds/embed-core/src/embed-iframe.ts +++ b/packages/embeds/embed-core/src/embed-iframe.ts @@ -108,8 +108,6 @@ interface EmbedNonStylesConfig { }; } -type ReactEmbedStylesSetter = React.Dispatch>; - const setEmbedStyles = (stylesConfig: UiConfig["styles"]) => { embedStore.styles = stylesConfig; for (const [, setEmbedStyle] of Object.entries(embedStore.reactStylesStateSetters)) { @@ -308,7 +306,6 @@ const messageParent = (data: any) => { function keepParentInformedAboutDimensionChanges() { let knownIframeHeight: number | null = null; let knownIframeWidth: number | null = null; - let numDimensionChanges = 0; let isFirstTime = true; let isWindowLoadComplete = false; runAsap(function informAboutScroll() { @@ -355,7 +352,6 @@ function keepParentInformedAboutDimensionChanges() { if (knownIframeHeight !== iframeHeight || knownIframeWidth !== iframeWidth) { knownIframeHeight = iframeHeight; knownIframeWidth = iframeWidth; - numDimensionChanges++; // FIXME: This event shouldn't be subscribable by the user. Only by the SDK. sdkActionManager?.fire("__dimensionChanged", { iframeHeight, diff --git a/packages/embeds/embed-core/src/embed.ts b/packages/embeds/embed-core/src/embed.ts index 485d2263440cf..8f279311e9c33 100644 --- a/packages/embeds/embed-core/src/embed.ts +++ b/packages/embeds/embed-core/src/embed.ts @@ -482,7 +482,7 @@ export class Cal { } }); - this.actionManager.on("__iframeReady", (e) => { + this.actionManager.on("__iframeReady", () => { this.iframeReady = true; this.doInIframe({ method: "parentKnowsIframeReady", arg: undefined }); this.iframeDoQueue.forEach(({ method, arg }) => { @@ -499,7 +499,7 @@ export class Cal { } }); - this.actionManager.on("linkReady", (e) => { + this.actionManager.on("linkReady", () => { this.modalBox?.setAttribute("state", "loaded"); this.inlineEl?.setAttribute("loading", "done"); }); diff --git a/packages/ui/components/form/checkbox/Checkbox.tsx b/packages/ui/components/form/checkbox/Checkbox.tsx index 6324be704115b..670df098bab06 100644 --- a/packages/ui/components/form/checkbox/Checkbox.tsx +++ b/packages/ui/components/form/checkbox/Checkbox.tsx @@ -12,7 +12,7 @@ type Props = InputHTMLAttributes & { }; const CheckboxField = forwardRef( - ({ label, description, error, informationIconText, disabled, ...rest }, ref) => { + ({ label, description, error, disabled, ...rest }, ref) => { const descriptionAsLabel = !label || rest.descriptionAsLabel; return (