update typings

availability-list
Ryukemeister 2023-10-11 18:31:28 +05:30
parent 11dde215bc
commit 38ac778fbc
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,9 @@
import { Clock } from "@calcom/ui/components/icon"; import { Clock } from "@calcom/ui/components/icon";
import { EmptyScreen } from "./EmptyScreen"; import { EmptyScreen } from "./EmptyScreen";
import type { Schedule } from ".prisma/client";
export function AvailabilityList({ schedules }: { schedules: { id: string }[] }) { export function AvailabilityList({ schedules }: { schedules: Schedule[] | [] }) {
return ( return (
<> <>
{schedules.length === 0 ? ( {schedules.length === 0 ? (
@ -19,7 +20,9 @@ export function AvailabilityList({ schedules }: { schedules: { id: string }[] })
Render availability list here Render availability list here
<div> <div>
{schedules.map((schedule) => ( {schedules.map((schedule) => (
<h1 key={schedule?.id}>Hi</h1> <h1 key={schedule?.id}>
<h1>{schedule?.name}</h1>
</h1>
))} ))}
</div> </div>
</div> </div>