From e31b68197ec16d2805ec14c2bf532a03f4739e92 Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Fri, 13 Feb 2026 07:01:40 -0800
Subject: Implement Frontend Logout with tests

---
 frontend/src/App.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'frontend/src/App.tsx')

diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index bc4e097..7c9d555 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -40,7 +40,12 @@ function Dashboard() {
       <header className="dashboard-header">
         <h1>Neko Reader</h1>
         <nav>
-          {/* Add logout later */}
+          <button onClick={() => {
+            fetch('/api/logout', { method: 'POST' })
+              .then(() => window.location.href = '/login/');
+          }} className="logout-btn">
+            Logout
+          </button>
         </nav>
       </header>
       <div className="dashboard-content">
-- 
cgit v1.2.3

