Skip to content

Commit

Permalink
don't flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Oct 1, 2024
1 parent 3c13d3e commit b65e18c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/dashboard/src/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -58,6 +59,10 @@ export const Login: FC<LoginProps> = ({ onLoggedIn }) => {
const providerFromContext =
(hostFromContext && authProviders.data?.find((provider) => provider.host === hostFromContext)) || undefined;

if (authProviders.isLoading) {
return <LoadingState />;
}

return (
<div
id="login-container"
Expand Down Expand Up @@ -325,7 +330,7 @@ const LeftPanel = () => {
{
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",
Expand Down

0 comments on commit b65e18c

Please sign in to comment.