From 4e0b978aa70985f9aa8bec885c6ee8f3897339b9 Mon Sep 17 00:00:00 2001 From: Ryukemeister Date: Thu, 19 Oct 2023 15:57:50 +0530 Subject: [PATCH] add badge component in event type --- packages/atoms/EventTypeList/EventType.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/atoms/EventTypeList/EventType.tsx b/packages/atoms/EventTypeList/EventType.tsx index c70618841d..6d3c2e0261 100644 --- a/packages/atoms/EventTypeList/EventType.tsx +++ b/packages/atoms/EventTypeList/EventType.tsx @@ -1,3 +1,4 @@ +import { Badge } from "@/components/ui/badge"; import { memo } from "react"; import { useOrgBranding } from "@calcom/ee/organizations/context/provider"; @@ -5,7 +6,7 @@ import { WEBAPP_URL } from "@calcom/lib/constants"; import { SchedulingType } from "@calcom/prisma/enums"; import { ArrowButton, AvatarGroup } from "@calcom/ui"; -const Item = ({ type, group, readOnly }: { type: any; group: any; readonly: boolean }) => { +const Item = ({ type, group, readOnly }: { type: any; group: any; readOnly: boolean }) => { const content = () => (
) : null} - {readOnly && <>Return badge from shadcn here} + {readOnly && Readonly}
); @@ -46,7 +47,7 @@ const Item = ({ type, group, readOnly }: { type: any; group: any; readonly: bool {`/${group.profile.slug}/${type.slug}`} ) : null} - {readOnly && <>Return badge from shadcn here} + {readOnly && Readonly} {/* Return EventTypeDescription component here */} @@ -117,7 +118,7 @@ export function EventType({ /> )}
- {isManagedEventType && <>{type.hidden && <>Return badge here }} + {isManagedEventType && Hidden}