Skip to content
Snippets Groups Projects
Commit aed10523 authored by mateusz-winiarczyk's avatar mateusz-winiarczyk
Browse files

fix(overlay): fix displaying info about auth status

parent 6185f84d
No related branches found
No related tags found
2 merge requests!87feat(overlays): MIN-192 add overlay as user,!79feat(overlays): MIN-191 add possibility to login
Pipeline #83280 passed
......@@ -22,9 +22,7 @@ export const UserOverlays = (): JSX.Element => {
<div className="p-6">
{loadingUser === 'pending' && <h1>Loading</h1>}
{authenticatedUser ? (
<h1>Authenticated</h1>
) : (
{loadingUser !== 'pending' && !authenticatedUser && (
<>
<p className="mb-5 font-semibold">User provided overlays:</p>
<p className="mb-5 text-sm">
......@@ -33,6 +31,9 @@ export const UserOverlays = (): JSX.Element => {
<Button onClick={handleLoginClick}>Login</Button>
</>
)}
{/* TODO: Implement user overlays */}
{authenticatedUser && <h1>Authenticated</h1>}
</div>
);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment