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}