From 15a0216cc52195d64f62a7ce2eafd02a956411ea Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 9 Sep 2022 13:24:26 +0100 Subject: [PATCH] Removed deprecations (#4335) --- apps/web/pages/v2/availability/troubleshoot.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/web/pages/v2/availability/troubleshoot.tsx b/apps/web/pages/v2/availability/troubleshoot.tsx index aad5a76216..88ece24849 100644 --- a/apps/web/pages/v2/availability/troubleshoot.tsx +++ b/apps/web/pages/v2/availability/troubleshoot.tsx @@ -4,10 +4,7 @@ import dayjs from "@calcom/dayjs"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { inferQueryOutput, trpc } from "@calcom/trpc/react"; import Shell from "@calcom/ui/Shell"; - -import { QueryCell } from "@lib/QueryCell"; - -import Loader from "@components/Loader"; +import { SkeletonText } from "@calcom/ui/v2/core/skeleton"; type User = inferQueryOutput<"viewer.me">; @@ -57,7 +54,10 @@ const AvailabilityView = ({ user }: { user: User }) => { {isLoading ? ( - + <> + + + ) : data && data.busy.length > 0 ? ( data.busy .sort((a: IBusySlot, b: IBusySlot) => (a.start > b.start ? -1 : 1)) @@ -97,12 +97,12 @@ const AvailabilityView = ({ user }: { user: User }) => { }; export default function Troubleshoot() { - const query = trpc.useQuery(["viewer.me"]); + const { data, isLoading } = trpc.useQuery(["viewer.me"]); const { t } = useLocale(); return (
- } /> + {!isLoading && data && }
);