remove type schedule and import it from availability list

availability-list
Ryukemeister 2023-10-27 22:48:11 +05:30
parent 7723cbfee7
commit 2e8398a255
1 changed files with 1 additions and 17 deletions

View File

@ -8,28 +8,12 @@ import {
} from "@/components/ui/dropdown-menu"; } from "@/components/ui/dropdown-menu";
import { Toaster } from "@/components/ui/toaster"; import { Toaster } from "@/components/ui/toaster";
import { useToast } from "@/components/ui/use-toast"; import { useToast } from "@/components/ui/use-toast";
import type { Schedule } from "availabilitylist/AvailabilityList";
import { Globe, MoreHorizontal, Star, Copy, Trash } from "lucide-react"; import { Globe, MoreHorizontal, Star, Copy, Trash } from "lucide-react";
import { Fragment } from "react"; import { Fragment } from "react";
import { availabilityAsString } from "@calcom/lib/availability"; 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({ export function Availability({
schedule, schedule,
isDeletable, isDeletable,