Skip to content

Commit

Permalink
changed displaying moodle symbol on welcome screen only after success…
Browse files Browse the repository at this point in the history
…ful login
  • Loading branch information
mountler committed Jan 15, 2024
1 parent 6f0a286 commit d9aa833
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,21 @@ export default function LogoutComponent({

return (
<div className={tailwindMerge(className)}>
<StyledButton
color={userLoggedIn ? "success" : "default"}
shape="freefloatleft"
data-testid="login-button"
className="flex h-10 gap-2 m-1 !border-b-[1px] !border-r-[1px] pointer-events-none w-fit"
>
<img className="w-10" src={moodleIcon} alt="Moodle-Icon"></img>
{userLoggedIn && (
<p className="text-sm font-regular portrait:hidden">
{"Eingeloggt als " + userName}
</p>
)}
</StyledButton>

{userLoggedIn && (
<StyledButton
color={userLoggedIn ? "success" : "default"}
shape="freefloatleft"
data-testid="login-button"
className="flex h-10 gap-2 m-1 !border-b-[1px] !border-r-[1px] pointer-events-none w-fit"
>
<img className="w-10" src={moodleIcon} alt="Moodle-Icon"></img>
{userLoggedIn && (
<p className="text-sm font-regular portrait:hidden">
{"Eingeloggt als " + userName}
</p>
)}
</StyledButton>
)}
{userLoggedIn && (
<StyledButton
shape="freefloatleft"
Expand Down

0 comments on commit d9aa833

Please sign in to comment.