remove type schedule and import it from availability list
parent
7723cbfee7
commit
2e8398a255
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue