From 501f9ad2fd3b12e87b4e9c38f1efbf2dad27ad3e Mon Sep 17 00:00:00 2001 From: Ryukemeister Date: Mon, 16 Oct 2023 16:49:48 +0530 Subject: [PATCH] update component names --- .../availabilitylist/AvailabilityList.tsx | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/atoms/availabilitylist/AvailabilityList.tsx b/packages/atoms/availabilitylist/AvailabilityList.tsx index e1c59df488..85f75bb85a 100644 --- a/packages/atoms/availabilitylist/AvailabilityList.tsx +++ b/packages/atoms/availabilitylist/AvailabilityList.tsx @@ -4,8 +4,24 @@ import type { HttpError } from "@calcom/lib/http-error"; import { Clock } from "@calcom/ui/components/icon"; import { EmptyScreen } from "./EmptyScreen"; -import ScheduleListItem from "./ScheduleListItem"; -import type { Schedule } from ".prisma/client"; +import { Availability } from "./ScheduleListItem"; + +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 AvailabilityList({ schedules, @@ -39,7 +55,7 @@ export function AvailabilityList({