Don't flash sign in button if user is loading

This commit is contained in:
James Grugett 2022-10-05 16:56:47 -05:00
parent a3acd3fa3c
commit 0818a94307

View File

@ -63,7 +63,8 @@ export default function Sidebar(props: {
)} )}
<Spacer h={6} /> <Spacer h={6} />
{!user && <SignInButton className="mb-4" />} {user === undefined && <div className="h-[178px]" />}
{user === null && <SignInButton className="mb-4" />}
{user && <ProfileSummary user={user} />} {user && <ProfileSummary user={user} />}