From 38ac778fbc2f1f46e81838c9a7713fd68639b23b Mon Sep 17 00:00:00 2001 From: Ryukemeister Date: Wed, 11 Oct 2023 18:31:28 +0530 Subject: [PATCH] update typings --- packages/atoms/availabilitylist/AvailabilityList.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/atoms/availabilitylist/AvailabilityList.tsx b/packages/atoms/availabilitylist/AvailabilityList.tsx index f7efed72c5..34901fe44f 100644 --- a/packages/atoms/availabilitylist/AvailabilityList.tsx +++ b/packages/atoms/availabilitylist/AvailabilityList.tsx @@ -1,8 +1,9 @@ import { Clock } from "@calcom/ui/components/icon"; import { EmptyScreen } from "./EmptyScreen"; +import type { Schedule } from ".prisma/client"; -export function AvailabilityList({ schedules }: { schedules: { id: string }[] }) { +export function AvailabilityList({ schedules }: { schedules: Schedule[] | [] }) { return ( <> {schedules.length === 0 ? ( @@ -19,7 +20,9 @@ export function AvailabilityList({ schedules }: { schedules: { id: string }[] }) Render availability list here
{schedules.map((schedule) => ( -

Hi

+

+

{schedule?.name}

+ ))}