diff --git a/Frontend/src/pages/nav.js b/Frontend/src/pages/nav.js index 3e7e612..1a055e0 100644 --- a/Frontend/src/pages/nav.js +++ b/Frontend/src/pages/nav.js @@ -1,102 +1,95 @@ -// Import React import React from "react"; import Link from "next/link"; -// NavBar Component + + const NavBar = () => { + const handleLogout = () => { + // Set the 'token' cookie to expire immediately, effectively logging the user out + document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;"; + + + + }; + return (