Skip to content

Commit d782aad

Browse files
don't flicker (#20256)
Co-authored-by: Filip Troníček <[email protected]>
1 parent 96dcc25 commit d782aad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/dashboard/src/Login.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { LinkButton } from "@podkit/buttons/LinkButton";
2727
import { IconGitpodEngraved } from "./icons/GitpodEngraved";
2828
import { IconEarlyAccess } from "./icons/IconEarlyAccess";
2929
import { useTheme } from "./theme-context";
30+
import { LoadingState } from "@podkit/loading/LoadingState";
3031

3132
export function markLoggedIn() {
3233
document.cookie = GitpodCookie.generateCookie(window.location.hostname);
@@ -58,6 +59,10 @@ export const Login: FC<LoginProps> = ({ onLoggedIn }) => {
5859
const providerFromContext =
5960
(hostFromContext && authProviders.data?.find((provider) => provider.host === hostFromContext)) || undefined;
6061

62+
if (authProviders.isLoading) {
63+
return <LoadingState />;
64+
}
65+
6166
return (
6267
<div
6368
id="login-container"
@@ -325,7 +330,7 @@ const LeftPanel = () => {
325330
{
326331
title: "Local environments to replace Docker Desktop",
327332
description:
328-
"Built-in Linux virtualization to run Dev Container without Docker Desktop on MacOS",
333+
"Built-in Linux virtualization to run Dev Container without Docker Desktop on macOS",
329334
},
330335
{
331336
title: "Automate common development workflows",

0 commit comments

Comments
 (0)