From 2e8398a255361701e6e9fcc89e634a5e06f4e9b4 Mon Sep 17 00:00:00 2001 From: Ryukemeister Date: Fri, 27 Oct 2023 22:48:11 +0530 Subject: [PATCH] remove type schedule and import it from availability list --- .../availabilitylist/ScheduleListItem.tsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/packages/atoms/availabilitylist/ScheduleListItem.tsx b/packages/atoms/availabilitylist/ScheduleListItem.tsx index f7ec6ee7b5..0bee8d2400 100644 --- a/packages/atoms/availabilitylist/ScheduleListItem.tsx +++ b/packages/atoms/availabilitylist/ScheduleListItem.tsx @@ -8,28 +8,12 @@ import { } from "@/components/ui/dropdown-menu"; import { Toaster } from "@/components/ui/toaster"; import { useToast } from "@/components/ui/use-toast"; +import type { Schedule } from "availabilitylist/AvailabilityList"; import { Globe, MoreHorizontal, Star, Copy, Trash } from "lucide-react"; import { Fragment } from "react"; import { availabilityAsString } from "@calcom/lib/availability"; -type Schedule = { - isDefault: boolean; - id: number; - name: string; - availability: { - id: number; - startTime: Date; - endTime: Date; - userId: number | null; - eventTypeId: number | null; - date: Date | null; - days: number[]; - scheduleId: number | null; - }[]; - timezone: string | null; -}; - export function Availability({ schedule, isDeletable,