feat: refactoring, soem work on forms

This commit is contained in:
2026-09-13 23:17:37 +02:00
parent fa07d4cc0b
commit 0dbbe5361a
17 changed files with 260 additions and 116 deletions
+7 -1
View File
@@ -7,7 +7,6 @@ const loggedOutLinks = [
const loggedInLinks = [
{ href: "/", label: "Home" },
{ href: "/dashboard", label: "Dashboard" },
{ href: "/sign-out", label: "Sign out" },
];
export interface Props {
@@ -29,6 +28,13 @@ export default function Header(props: Props) {
<a href={l.href}>{l.label}</a>
</li>
))}
{props.loggedIn && (
<li>
<form method="post" action="/sign-out">
<button type="submit">Sign out</button>
</form>
</li>
)}
</ul>
</div>
</div>