From d782aadb4c4424c1b07486a79a1de161c812381d Mon Sep 17 00:00:00 2001 From: Gero Posmyk-Leinemann Date: Tue, 1 Oct 2024 17:07:16 +0200 Subject: [PATCH] don't flicker (#20256) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Filip Troníček --- components/dashboard/src/Login.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/dashboard/src/Login.tsx b/components/dashboard/src/Login.tsx index 27d5ac2c85079d..093a5af6d938b4 100644 --- a/components/dashboard/src/Login.tsx +++ b/components/dashboard/src/Login.tsx @@ -27,6 +27,7 @@ import { LinkButton } from "@podkit/buttons/LinkButton"; import { IconGitpodEngraved } from "./icons/GitpodEngraved"; import { IconEarlyAccess } from "./icons/IconEarlyAccess"; import { useTheme } from "./theme-context"; +import { LoadingState } from "@podkit/loading/LoadingState"; export function markLoggedIn() { document.cookie = GitpodCookie.generateCookie(window.location.hostname); @@ -58,6 +59,10 @@ export const Login: FC = ({ onLoggedIn }) => { const providerFromContext = (hostFromContext && authProviders.data?.find((provider) => provider.host === hostFromContext)) || undefined; + if (authProviders.isLoading) { + return ; + } + return (
{ { title: "Local environments to replace Docker Desktop", description: - "Built-in Linux virtualization to run Dev Container without Docker Desktop on MacOS", + "Built-in Linux virtualization to run Dev Container without Docker Desktop on macOS", }, { title: "Automate common development workflows",