Moved Logout Button

This commit is contained in:
2025-04-13 05:00:08 -04:00
parent bc1fb0e3c7
commit 71daa94988
2 changed files with 8 additions and 9 deletions

View File

@@ -15,13 +15,7 @@ function Mobile() {
<h1 className="text-3xl sm:text-4xl font-bold tracking-[-.01em] text-center sm:text-left">
{isAuthenticated ? `Welcome, ${session.username} !!` : ""}
</h1>
{isAuthenticated ? (
<div>
<button type="button" className="btn bg-surface-500">
<a href="/auth/logout">Logout</a>
</button>
</div>
) : (
{!isAuthenticated ? (
<div className="flex gap-4">
<button type="button" className="btn bg-surface-500">
<a href="/auth/login?screen_hint=signup">Sign up</a>
@@ -30,7 +24,7 @@ function Mobile() {
<a href="/auth/login?screen_hint=login">Log in</a>
</button>
</div>
)}
) : null}
</main>
);
}