Skip to content

Commit

Permalink
make logout a button
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-burel committed Jan 31, 2022
1 parent 564c9da commit 401610a
Show file tree
Hide file tree
Showing 2 changed files with 1,114 additions and 1,622 deletions.
1 change: 1 addition & 0 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const Footer = () => {
side-effects with GET is a bad practice leading to all sort of troubles */}
{/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
<a
href="#"
onClick={async (evt) => {
evt.preventDefault();
await fetch(apiRoutes.account.logout.href, {
Expand Down
Loading

0 comments on commit 401610a

Please sign in to comment.