Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Nov 21, 2023
1 parent 995dc24 commit 1925767
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as css from "@/app/css";
import { useEffect, useState } from "react";
import { SessionData } from "./lib";
import { defaultSession } from "./lib";
import Link from "next/link";

export function Form() {
const [session, setSession] = useState<SessionData>(defaultSession);
Expand Down Expand Up @@ -66,12 +67,12 @@ function LoginForm() {
function LogoutButton() {
return (
<p>
<a
<Link
href="/api/pages-router-redirect-api-route-fetch/session?action=logout"
className={css.button}
>
Logout
</a>
</Link>
</p>
);
}

0 comments on commit 1925767

Please sign in to comment.