fix: imports and types

This commit is contained in:
Morgan Vernay 2024-01-12 17:10:29 +02:00
parent 49edc679f3
commit c032c1479b
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,3 @@
import type { useOverlayCalendarReturnType } from "bookings/Booker/components/hooks/useOverlayCalendar";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { Fragment } from "react";
@ -21,6 +20,7 @@ import {
import { Calendar } from "@calcom/ui/components/icon";
import { useLocalSet } from "../hooks/useLocalSet";
import type { useOverlayCalendarReturnType } from "../hooks/useOverlayCalendar";
interface IOverlayCalendarContinueModalProps {
open?: boolean;
@ -48,7 +48,7 @@ export function OverlayCalendarSettingsModal({
isLoading,
open,
onClose,
onToggledConnectedCalendar,
onToggleConnectedCalendar,
}: IOverlayCalendarContinueModalProps) {
const { hasItem } = useLocalSet<{
credentialId: number;
@ -125,7 +125,7 @@ export function OverlayCalendarSettingsModal({
externalId: cal.externalId,
})}
onCheckedChange={() => {
onToggledConnectedCalendar(cal.externalId, item.credentialId);
onToggleConnectedCalendar(cal.externalId, item.credentialId);
}}
/>
<label htmlFor={id}>{cal.name}</label>

View File

@ -1,4 +1,3 @@
import type { useEventReturnType } from "bookings/Booker/utils/event";
import { useEffect, useRef } from "react";
import { shallow } from "zustand/shallow";
@ -10,6 +9,7 @@ import { defaultBookerLayoutSettings } from "@calcom/prisma/zod-utils";
import { extraDaysConfig } from "../../config";
import { useBookerStore } from "../../store";
import type { BookerLayout } from "../../types";
import type { useEventReturnType } from "../../utils/event";
import { validateLayout } from "../../utils/layout";
import { getQueryParam } from "../../utils/query-param";

View File

@ -23,7 +23,7 @@ import { bookingMetadataSchema } from "@calcom/prisma/zod-utils";
import { trpc } from "@calcom/trpc";
import { showToast } from "@calcom/ui";
import type { useBookingFormReturnType } from "./useBookingForms";
import type { useBookingFormReturnType } from "./useBookingForm";
import { useInitialFormValues } from "./useInitialFormValues";
export interface IUseBookings {