refactor: move shared components from apps/web to packages/features (#27490)
* refactor: move shared components from apps/web to packages/features Move components that don't require dependency injection: - DisconnectIntegrationModal - Booking components (Header, Section, TimeFormatToggle, PayIcon, Price) - useInitializeWeekStart hook - TeamEventTypeForm - Event type components (AssignAllTeamMembers, BulkEditDefaultForEventsModal, etc.) - Event type dialogs (HostEditDialogs, ManagedEventDialog) - Location components (LocationInput, types) - Tab components (EventLimitsTab, EventRecurringTab, etc.) Co-Authored-By: [email protected] <[email protected]> * refactor: update import paths to use @calcom/features Update imports in apps/web and packages/platform/atoms to reference the moved components from @calcom/features instead of @calcom/web. Co-Authored-By: [email protected] <[email protected]> * refactor: delete original files from apps/web/modules Complete the file move by deleting the original files that were copied to packages/features. This makes it a proper move instead of a copy, reducing the PR size significantly. Co-Authored-By: [email protected] <[email protected]> * fix: update import paths to use @calcom/features for moved files Update import paths in apps/web files that reference components that were moved from apps/web/modules to packages/features: - LearnMoreLink - ChildrenEventTypeSelect - AssignAllTeamMembers - WeightDescription - LocationCustomClassNames (types) Co-Authored-By: [email protected] <[email protected]> * fix: update additional import paths for moved components Update import paths in apps/web files that reference components moved from apps/web/modules to packages/features: - AppList.tsx: BulkEditDefaultForEventsModal - schedule-view.tsx: BulkUpdatParams type - AddMembersWithSwitch.tsx: AssignAllTeamMembers, CheckedTeamSelect - EventTypeWebWrapper.tsx: ChildrenEventType, ManagedEventDialog - DefaultLocationSettings.tsx: LocationCustomClassNames, LocationInput - Locations.tsx: LocationCustomClassNames, LocationInput Co-Authored-By: [email protected] <[email protected]> * fix: resolve circular dependency by adding isPlatform prop to Header This fixes the circular dependency where @calcom/atoms (CalendarViewComponent) was importing Header from @calcom/features, but Header was importing useIsPlatform from @calcom/atoms. The fix adds an isPlatform prop to the Header component so it no longer needs to import useIsPlatform from @calcom/atoms. Callers now pass the isPlatform value directly: - atoms components pass isPlatform={true} - web components pass the isPlatform prop they receive Fix confidence: 9/10 (Cubic AI) Co-Authored-By: unknown <> * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
61 files changed
+77
-76
No files matched your search
@@ -8,7 +8,7 @@ import { nameOfDay } from "@calcom/lib/weekday";
|
||||
import { BookerLayouts } from "@calcom/prisma/zod-utils";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
|
||||
import { TimeFormatToggle } from "./TimeFormatToggle";
|
||||
import { TimeFormatToggle } from "@calcom/features/bookings/components/TimeFormatToggle";
|
||||
|
||||
type AvailableTimesHeaderProps = {
|
||||
date: Dayjs;
|
||||
|
||||
@@ -45,12 +45,12 @@ import { DatePicker } from "./DatePicker";
|
||||
import { DryRunMessage } from "./DryRunMessage";
|
||||
import { EventMeta } from "./EventMeta";
|
||||
import { HavingTroubleFindingTime } from "./HavingTroubleFindingTime";
|
||||
import { Header } from "./Header";
|
||||
import { Header } from "@calcom/features/bookings/components/Header";
|
||||
import { InstantBooking } from "./InstantBooking";
|
||||
import { LargeCalendar } from "./LargeCalendar";
|
||||
import { OverlayCalendar } from "./OverlayCalendar/OverlayCalendar";
|
||||
import { RedirectToInstantMeetingModal } from "./RedirectToInstantMeetingModal";
|
||||
import { BookerSection } from "./Section";
|
||||
import { BookerSection } from "@calcom/features/bookings/components/Section";
|
||||
import { SlotSelectionModalHeader } from "./SlotSelectionModalHeader";
|
||||
import { NotFound } from "./Unavailable";
|
||||
import { VerifyCodeDialog } from "./VerifyCodeDialog";
|
||||
|
||||
@@ -1,253 +0,0 @@
|
||||
import { useCallback, useMemo } from "react";
|
||||
import { shallow } from "zustand/shallow";
|
||||
|
||||
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { useIsEmbed } from "@calcom/embed-core/embed-iframe";
|
||||
import { useBookerStoreContext } from "@calcom/features/bookings/Booker/BookerStoreProvider";
|
||||
import { useInitializeWeekStart } from "@calcom/web/modules/bookings/hooks/useInitializeWeekStart";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { formatDateTime } from "@calcom/lib/dateTimeFormatter";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { BookerLayouts } from "@calcom/prisma/zod-utils";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { ButtonGroup } from "@calcom/ui/components/buttonGroup";
|
||||
import { ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
import { TimeFormatToggle } from "@calcom/web/modules/bookings/components/TimeFormatToggle";
|
||||
import type { BookerLayout } from "@calcom/features/bookings/Booker/types";
|
||||
|
||||
export function Header({
|
||||
extraDays,
|
||||
isMobile,
|
||||
enabledLayouts,
|
||||
nextSlots,
|
||||
eventSlug,
|
||||
isMyLink,
|
||||
renderOverlay,
|
||||
isCalendarView,
|
||||
}: {
|
||||
extraDays: number;
|
||||
isMobile: boolean;
|
||||
enabledLayouts: BookerLayouts[];
|
||||
nextSlots: number;
|
||||
eventSlug: string;
|
||||
isMyLink: boolean;
|
||||
renderOverlay?: () => JSX.Element | null;
|
||||
isCalendarView?: boolean;
|
||||
}) {
|
||||
const { t, i18n } = useLocale();
|
||||
const isEmbed = useIsEmbed();
|
||||
const isPlatform = useIsPlatform();
|
||||
const [layout, setLayout] = useBookerStoreContext((state) => [state.layout, state.setLayout], shallow);
|
||||
const selectedDateString = useBookerStoreContext((state) => state.selectedDate);
|
||||
const setSelectedDate = useBookerStoreContext((state) => state.setSelectedDate);
|
||||
const addToSelectedDate = useBookerStoreContext((state) => state.addToSelectedDate);
|
||||
const isMonthView = isCalendarView !== undefined ? !isCalendarView : layout === BookerLayouts.MONTH_VIEW;
|
||||
const today = dayjs();
|
||||
const selectedDate = selectedDateString ? dayjs(selectedDateString) : today;
|
||||
const selectedDateMin3DaysDifference = useMemo(() => {
|
||||
const diff = today.diff(selectedDate, "days");
|
||||
return diff > 3 || diff < -3;
|
||||
}, [today, selectedDate]);
|
||||
|
||||
useInitializeWeekStart(isPlatform, isCalendarView ?? false);
|
||||
|
||||
const onLayoutToggle = useCallback(
|
||||
(newLayout: string) => {
|
||||
if (layout === newLayout || !newLayout) return;
|
||||
setLayout(newLayout as BookerLayout);
|
||||
},
|
||||
[setLayout, layout]
|
||||
);
|
||||
|
||||
if (isMobile || !enabledLayouts) return null;
|
||||
|
||||
// In month view we only show the layout toggle.
|
||||
if (isMonthView) {
|
||||
return (
|
||||
<div className="flex gap-2">
|
||||
{isMyLink && !isEmbed ? (
|
||||
<Tooltip content={t("troubleshooter_tooltip")} side="bottom">
|
||||
<Button
|
||||
color="primary"
|
||||
target="_blank"
|
||||
href={`${WEBAPP_URL}/availability/troubleshoot?eventType=${eventSlug}`}>
|
||||
{t("need_help")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
) : (
|
||||
renderOverlay?.()
|
||||
)}
|
||||
<LayoutToggleWithData
|
||||
layout={layout}
|
||||
enabledLayouts={enabledLayouts}
|
||||
onLayoutToggle={onLayoutToggle}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
const endDate = selectedDate.add(layout === BookerLayouts.COLUMN_VIEW ? extraDays : extraDays - 1, "days");
|
||||
|
||||
const isSameMonth = () => {
|
||||
return selectedDate.format("MMM") === endDate.format("MMM");
|
||||
};
|
||||
|
||||
const isSameYear = () => {
|
||||
return selectedDate.format("YYYY") === endDate.format("YYYY");
|
||||
};
|
||||
const formatMonthLabel = (date: Date) =>
|
||||
formatDateTime(date, { locale: i18n.language ?? "en", month: "short" });
|
||||
const FormattedSelectedDateRange = () => {
|
||||
return (
|
||||
<h3 className="min-w-[150px] text-base font-semibold leading-4">
|
||||
{formatMonthLabel(selectedDate.toDate())} {selectedDate.format("D")}
|
||||
{!isSameYear() && <span className="text-subtle">, {selectedDate.format("YYYY")} </span>}-{" "}
|
||||
{!isSameMonth() && formatMonthLabel(endDate.toDate())} {endDate.format("D")},{" "}
|
||||
<span className="text-subtle">
|
||||
{isSameYear() ? selectedDate.format("YYYY") : endDate.format("YYYY")}
|
||||
</span>
|
||||
</h3>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="border-default relative z-10 flex border-b px-5 py-4 ltr:border-l rtl:border-r">
|
||||
<div className="flex items-center gap-5 rtl:grow">
|
||||
<FormattedSelectedDateRange />
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
className="group rtl:ml-1 rtl:rotate-180"
|
||||
variant="icon"
|
||||
color="minimal"
|
||||
StartIcon="chevron-left"
|
||||
aria-label="Previous Day"
|
||||
onClick={() => addToSelectedDate(layout === BookerLayouts.COLUMN_VIEW ? -nextSlots : -extraDays)}
|
||||
/>
|
||||
<Button
|
||||
className="group rtl:mr-1 rtl:rotate-180"
|
||||
variant="icon"
|
||||
color="minimal"
|
||||
StartIcon="chevron-right"
|
||||
aria-label="Next Day"
|
||||
onClick={() => addToSelectedDate(layout === BookerLayouts.COLUMN_VIEW ? nextSlots : extraDays)}
|
||||
/>
|
||||
{selectedDateMin3DaysDifference && (
|
||||
<Button
|
||||
className="capitalize ltr:ml-2 rtl:mr-2"
|
||||
color="secondary"
|
||||
onClick={() => {
|
||||
const selectedDate = (isCalendarView ? today.startOf("week") : today).format("YYYY-MM-DD");
|
||||
setSelectedDate({ date: selectedDate });
|
||||
}}>
|
||||
{t("today")}
|
||||
</Button>
|
||||
)}
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
<div className="ml-auto flex gap-2">
|
||||
{renderOverlay?.()}
|
||||
<TimeFormatToggle />
|
||||
<div className="fixed top-4 ltr:right-4 rtl:left-4">
|
||||
<LayoutToggleWithData
|
||||
layout={layout}
|
||||
enabledLayouts={enabledLayouts}
|
||||
onLayoutToggle={onLayoutToggle}
|
||||
/>
|
||||
</div>
|
||||
{/*
|
||||
This second layout toggle is hidden, but needed to reserve the correct spot in the DIV
|
||||
for the fixed toggle above to fit into. If we wouldn't make it fixed in this view, the transition
|
||||
would be really weird, because the element is positioned fixed in the month view, and then
|
||||
when switching layouts wouldn't anymore, causing it to animate from the center to the top right,
|
||||
while it actually already was on place. That's why we have this element twice.
|
||||
*/}
|
||||
<div className="pointer-events-none opacity-0" aria-hidden>
|
||||
<LayoutToggleWithData
|
||||
layout={layout}
|
||||
enabledLayouts={enabledLayouts}
|
||||
onLayoutToggle={onLayoutToggle}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const LayoutToggle = ({
|
||||
onLayoutToggle,
|
||||
layout,
|
||||
enabledLayouts,
|
||||
}: {
|
||||
onLayoutToggle: (layout: string) => void;
|
||||
layout: string;
|
||||
enabledLayouts?: BookerLayouts[];
|
||||
}) => {
|
||||
const isEmbed = useIsEmbed();
|
||||
const isPlatform = useIsPlatform();
|
||||
|
||||
const { t } = useLocale();
|
||||
|
||||
const layoutOptions = useMemo(() => {
|
||||
return [
|
||||
{
|
||||
value: BookerLayouts.MONTH_VIEW,
|
||||
label: (
|
||||
<>
|
||||
<Icon name="calendar" width="16" height="16" />
|
||||
<span className="sr-only">${t("switch_monthly")}</span>
|
||||
</>
|
||||
),
|
||||
tooltip: t("switch_monthly"),
|
||||
},
|
||||
{
|
||||
value: BookerLayouts.WEEK_VIEW,
|
||||
label: (
|
||||
<>
|
||||
<Icon name="grid-3x3" width="16" height="16" />
|
||||
<span className="sr-only">${t("switch_weekly")}</span>
|
||||
</>
|
||||
),
|
||||
tooltip: t("switch_weekly"),
|
||||
},
|
||||
{
|
||||
value: BookerLayouts.COLUMN_VIEW,
|
||||
label: (
|
||||
<>
|
||||
<Icon name="columns-3" width="16" height="16" />
|
||||
<span className="sr-only">${t("switch_columnview")}</span>
|
||||
</>
|
||||
),
|
||||
tooltip: t("switch_columnview"),
|
||||
},
|
||||
].filter((layout) => enabledLayouts?.includes(layout.value as BookerLayouts));
|
||||
}, [t, enabledLayouts]);
|
||||
|
||||
// We don't want to show the layout toggle in embed mode as of now as it doesn't look rightly placed when embedded.
|
||||
// There is a Embed API to control the layout toggle from outside of the iframe.
|
||||
if (isEmbed) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// just like embed the layout toggle doesn't look rightly placed in platform
|
||||
// the layout can be toggled via props in the booker atom
|
||||
if (isPlatform) return null;
|
||||
|
||||
return <ToggleGroup onValueChange={onLayoutToggle} defaultValue={layout} options={layoutOptions} />;
|
||||
};
|
||||
|
||||
const LayoutToggleWithData = ({
|
||||
enabledLayouts,
|
||||
onLayoutToggle,
|
||||
layout,
|
||||
}: {
|
||||
enabledLayouts: BookerLayouts[];
|
||||
onLayoutToggle: (layout: string) => void;
|
||||
layout: string;
|
||||
}) => {
|
||||
return enabledLayouts.length <= 1 ? null : (
|
||||
<LayoutToggle onLayoutToggle={onLayoutToggle} layout={layout} enabledLayouts={enabledLayouts} />
|
||||
);
|
||||
};
|
||||
@@ -1,63 +0,0 @@
|
||||
import type { MotionProps } from "framer-motion";
|
||||
import { m } from "framer-motion";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
import { useBookerStoreContext } from "@calcom/features/bookings/Booker/BookerStoreProvider";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
|
||||
import type { BookerAreas, BookerLayout } from "@calcom/features/bookings/Booker/types";
|
||||
|
||||
/**
|
||||
* Define what grid area a section should be in.
|
||||
* Value is either a string (in case it's always the same area), or an object
|
||||
* looking like:
|
||||
* {
|
||||
* // Where default is the required default area.
|
||||
* default: "calendar",
|
||||
* // Any optional overrides for different layouts by their layout name.
|
||||
* week_view: "main",
|
||||
* }
|
||||
*/
|
||||
type GridArea = BookerAreas | ({ [key in BookerLayout]?: BookerAreas } & { default: BookerAreas });
|
||||
|
||||
type BookerSectionProps = {
|
||||
children: React.ReactNode;
|
||||
area: GridArea;
|
||||
visible?: boolean;
|
||||
className?: string;
|
||||
} & MotionProps;
|
||||
|
||||
// This map with strings is needed so Tailwind generates all classnames,
|
||||
// If we would concatenate them with JS, Tailwind would not generate them.
|
||||
const gridAreaClassNameMap: { [key in BookerAreas]: string } = {
|
||||
calendar: "[grid-area:calendar]",
|
||||
main: "[grid-area:main]",
|
||||
meta: "[grid-area:meta]",
|
||||
timeslots: "[grid-area:timeslots]",
|
||||
header: "[grid-area:header]",
|
||||
};
|
||||
|
||||
/**
|
||||
* Small helper component that renders a booker section in a specific grid area.
|
||||
*/
|
||||
export const BookerSection = forwardRef<HTMLDivElement, BookerSectionProps>(function BookerSection(
|
||||
{ children, area, visible, className, ...props },
|
||||
ref
|
||||
) {
|
||||
const layout = useBookerStoreContext((state) => state.layout);
|
||||
let gridClassName: string;
|
||||
|
||||
if (typeof area === "string") {
|
||||
gridClassName = gridAreaClassNameMap[area];
|
||||
} else {
|
||||
gridClassName = gridAreaClassNameMap[area[layout] || area.default];
|
||||
}
|
||||
|
||||
if (!visible && typeof visible !== "undefined") return null;
|
||||
|
||||
return (
|
||||
<m.div ref={ref} className={classNames(gridClassName, className)} layout {...props}>
|
||||
{children}
|
||||
</m.div>
|
||||
);
|
||||
});
|
||||
@@ -1,26 +0,0 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
import { ToggleGroup } from "@calcom/ui/components/form";
|
||||
|
||||
import { useTimePreferences } from "@calcom/features/bookings/lib";
|
||||
|
||||
export const TimeFormatToggle = ({ customClassName }: { customClassName?: string }) => {
|
||||
const timeFormat = useTimePreferences((state) => state.timeFormat);
|
||||
const setTimeFormat = useTimePreferences((state) => state.setTimeFormat);
|
||||
const { t } = useLocale();
|
||||
|
||||
return (
|
||||
<ToggleGroup
|
||||
customClassNames={customClassName}
|
||||
onValueChange={(newFormat) => {
|
||||
if (newFormat && newFormat !== timeFormat) setTimeFormat(newFormat as TimeFormat);
|
||||
}}
|
||||
defaultValue={timeFormat}
|
||||
value={timeFormat}
|
||||
options={[
|
||||
{ value: TimeFormat.TWELVE_HOUR, label: t("12_hour_short") },
|
||||
{ value: TimeFormat.TWENTY_FOUR_HOUR, label: t("24_hour_short") },
|
||||
]}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import { vi } from "vitest";
|
||||
// Mock layout components
|
||||
vi.mock("../Header", () => ({
|
||||
|
||||
vi.mock("@calcom/features/bookings/components/Header", () => ({
|
||||
Header: ({ children }: { children: React.ReactNode }) => <div data-testid="header">{children}</div>,
|
||||
}));
|
||||
@@ -1,7 +1,7 @@
|
||||
import type React from "react";
|
||||
import { vi } from "vitest";
|
||||
|
||||
vi.mock("../Section", () => {
|
||||
vi.mock("@calcom/features/bookings/components/Section", () => {
|
||||
const BookerSection = ({
|
||||
children,
|
||||
className = "",
|
||||
|
||||
@@ -13,7 +13,7 @@ import { EventDetailBlocks } from "@calcom/features/bookings/types";
|
||||
import { AvailableEventLocations } from "./AvailableEventLocations";
|
||||
import { EventDuration } from "./Duration";
|
||||
import { EventOccurences } from "./Occurences";
|
||||
import { Price } from "./Price";
|
||||
import { Price } from "@calcom/features/bookings/components/event-meta/Price";
|
||||
|
||||
type EventDetailsPropsBase = {
|
||||
event: Pick<
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
|
||||
export function PayIcon(props: { currency: string; className?: string }) {
|
||||
const { className, currency } = props;
|
||||
return <Icon name={currency !== "BTC" ? "credit-card" : "zap"} className={className} />;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
import { formatPrice } from "@calcom/lib/currencyConversions";
|
||||
|
||||
import type { EventPrice } from "@calcom/features/bookings/types";
|
||||
|
||||
const AlbyPriceComponent = dynamic(
|
||||
() => import("@calcom/app-store/alby/components/AlbyPriceComponent").then((m) => m.AlbyPriceComponent),
|
||||
{
|
||||
ssr: false,
|
||||
}
|
||||
);
|
||||
|
||||
export const Price = ({ price, currency, displayAlternateSymbol = true }: EventPrice) => {
|
||||
if (price === 0) return null;
|
||||
|
||||
const formattedPrice = formatPrice(price, currency);
|
||||
|
||||
return currency !== "BTC" ? (
|
||||
<>{formattedPrice}</>
|
||||
) : (
|
||||
<AlbyPriceComponent
|
||||
displaySymbol={displayAlternateSymbol}
|
||||
price={price}
|
||||
formattedPrice={formattedPrice}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -3,4 +3,4 @@ export { EventTitle } from "./Title";
|
||||
export { EventMetaSkeleton } from "./Skeleton";
|
||||
export { EventMembers } from "./Members";
|
||||
export { PriceIcon } from "./PriceIcon";
|
||||
export { PayIcon } from "./PayIcon";
|
||||
export { PayIcon } from "@calcom/features/bookings/components/event-meta/PayIcon";
|
||||
@@ -1,23 +0,0 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { useSlotsViewOnSmallScreen } from "@calcom/embed-core/embed-iframe";
|
||||
import { useBookerStoreContext } from "@calcom/features/bookings/Booker/BookerStoreProvider";
|
||||
|
||||
export const useInitializeWeekStart = (isPlatform: boolean, isCalendarView: boolean) => {
|
||||
const slotsViewOnSmallScreen = useSlotsViewOnSmallScreen();
|
||||
const today = dayjs();
|
||||
const weekStart = today.startOf("week").format("YYYY-MM-DD");
|
||||
const setSelectedDate = useBookerStoreContext((state) => state.setSelectedDate);
|
||||
|
||||
useEffect(() => {
|
||||
// don't auto-select date if slots view on small screen is enabled
|
||||
// auto-selecting would open the slots modal in that case which the user would most probably have to close
|
||||
if (slotsViewOnSmallScreen) return;
|
||||
|
||||
if (isPlatform && isCalendarView) {
|
||||
setSelectedDate({ date: weekStart, omitUpdatingParams: true });
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
};
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
useIsBackgroundTransparent,
|
||||
useIsEmbed,
|
||||
} from "@calcom/embed-core/embed-iframe";
|
||||
import { Price } from "@calcom/web/modules/bookings/components/event-meta/Price";
|
||||
import { Price } from "@calcom/features/bookings/components/event-meta/Price";
|
||||
import { getCalendarLinks, CalendarLinkType } from "@calcom/features/bookings/lib/getCalendarLinks";
|
||||
import { RATING_OPTIONS, validateRating } from "@calcom/features/bookings/lib/rating";
|
||||
import { isWithinMinimumRescheduleNotice as isWithinMinimumRescheduleNoticeUtil } from "@calcom/features/bookings/lib/reschedule/isWithinMinimumRescheduleNotice";
|
||||
|
||||
Reference in new issue
Block a user