diff --git a/apps/web/modules/settings/platform/platform-view.tsx b/apps/web/modules/settings/platform/platform-view.tsx index 684b861100..23d82bb919 100644 --- a/apps/web/modules/settings/platform/platform-view.tsx +++ b/apps/web/modules/settings/platform/platform-view.tsx @@ -5,6 +5,7 @@ import { usePathname } from "next/navigation"; import { useState, useEffect, useCallback } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { SkeletonText } from "@calcom/ui/components/skeleton"; import { showToast } from "@calcom/ui/components/toast"; import { useExternalRedirectHandler } from "@lib/hooks/settings/platform/billing/useExternalRedirectHandler"; @@ -21,6 +22,55 @@ import Shell from "~/shell/Shell"; const queryClient = new QueryClient(); +const PlatformSkeletonLoader = () => ( + } + heading={} + subtitle={} + title={undefined} + description={undefined}> +
+
+
+ + +
+
+
+
+
+
+ {[0, 1].map((i) => ( +
+
+
+ + +
+
+ + +
+
+ + + +
+
+
+
+
+
+
+
+ ))} +
+
+ +); + export default function Platform() { const { t } = useLocale(); const [_initialClientId, setInitialClientId] = useState(""); @@ -69,10 +119,10 @@ export default function Platform() { refetchBillingState(); }); - if (isUserLoading || isOAuthClientLoading) return
{t("loading")}
; + if (isUserLoading || isOAuthClientLoading) return ; if (isUserBillingDataLoading && !userBillingData) { - return
{t("loading")}
; + return ; } if (isPlatformUser && !isPaidUser)