From 638600a5b716aa989549ed8b103b35b185ecbdd6 Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 7 Sep 2022 19:09:33 -0600 Subject: [PATCH] Removed disconnected calendar notice --- apps/web/pages/v2/event-types/index.tsx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/apps/web/pages/v2/event-types/index.tsx b/apps/web/pages/v2/event-types/index.tsx index b8528980c7..59ad825fa5 100644 --- a/apps/web/pages/v2/event-types/index.tsx +++ b/apps/web/pages/v2/event-types/index.tsx @@ -32,7 +32,6 @@ import EventTypeDescription from "@components/eventtype/EventTypeDescription"; import SkeletonLoader from "@components/eventtype/SkeletonLoader"; import Avatar from "@components/ui/Avatar"; import AvatarGroup from "@components/ui/AvatarGroup"; -import NoCalendarConnectedAlert from "@components/ui/NoCalendarConnectedAlert"; import { TRPCClientError } from "@trpc/react"; @@ -73,6 +72,11 @@ const Item = ({ type, group, readOnly }: { type: EventType; group: EventTypeGrou {`/${group.profile.slug}/${type.slug}`} + {type.hidden && ( + + {t("hidden") as string} + + )} {readOnly && ( {t("readonly") as string} @@ -259,14 +263,9 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL )}
- {type.hidden && ( - - {t("hidden")} - - )}
{ const { t } = useLocale(); - return (
@@ -583,9 +581,6 @@ const EventTypesPage = () => { className="mb-4" /> )} - - - {data.eventTypeGroups.map((group, index) => ( {/* hide list heading when there is only one (current user) */}