From 74fd513e4456d4074c07cf3f46528dc8e53910d1 Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 31 Aug 2023 09:21:22 -0700 Subject: [PATCH] WIP --- apps/web/pages/event-types/index.tsx | 87 ++++++++++++++++------------ 1 file changed, 49 insertions(+), 38 deletions(-) diff --git a/apps/web/pages/event-types/index.tsx b/apps/web/pages/event-types/index.tsx index 6eb23dd747..0c45dfceb4 100644 --- a/apps/web/pages/event-types/index.tsx +++ b/apps/web/pages/event-types/index.tsx @@ -27,6 +27,7 @@ import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery"; import { HttpError } from "@calcom/lib/http-error"; import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML"; import { SchedulingType } from "@calcom/prisma/enums"; +import { EventTypeMetaDataSchema } from "@calcom/prisma/zod-utils"; import type { RouterOutputs } from "@calcom/trpc/react"; import { trpc, TRPCClientError } from "@calcom/trpc/react"; import { @@ -82,7 +83,11 @@ type EventTypeGroupProfile = EventTypeGroups[number]["profile"]; type PaginateEventTypeViewer = RouterOutputs["viewer"]["eventTypes"]["paginate"]; interface EventTypeListHeadingProps { - profile: EventTypeGroupProfile; + profile: { + name: string | null; + slug?: string | null; + username?: string | null; + }; membershipCount: number; teamId?: number | null; orgSlug?: string; @@ -374,11 +379,14 @@ export const EventTypeList = ({ data }: EventTypeListProps): JSX.Element => {