From 2c783bdb703e4ad69c9f3f846c2c9e6a527ccc80 Mon Sep 17 00:00:00 2001
From: Andrew Lee <andrew@alee14.me>
Date: Tue, 25 Mar 2025 17:23:30 -0400
Subject: Implemented admin dashboard

---
 web/src/app/components/sign-out.jsx | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

(limited to 'web/src/app/components/sign-out.jsx')

diff --git a/web/src/app/components/sign-out.jsx b/web/src/app/components/sign-out.jsx
index dd6693d..b0762d8 100644
--- a/web/src/app/components/sign-out.jsx
+++ b/web/src/app/components/sign-out.jsx
@@ -1,5 +1,16 @@
+'use client';
+import { useAuth } from '@/context/middleware';
+
 export default function SignOut() {
+    const { logout } = useAuth();
+
     return (
-        <button type="submit" className="py-2 px-4 rounded-md text-md bg-red-700 hover:bg-red-500">Sign out</button>
-    )
+        <button
+            type="button"
+            onClick={logout}
+            className="py-2 px-4 rounded-md text-md bg-red-700 hover:bg-red-500"
+        >
+            Sign out
+        </button>
+    );
 }
-- 
cgit v1.2.3

