Refactor Dashboard and Login components: add URL synchronization in Dashboard, update Login form submission handling

This commit is contained in:
2025-09-28 16:07:39 +02:00
parent eff1f61422
commit ea965971f1
3 changed files with 57 additions and 35 deletions

View File

@@ -39,6 +39,7 @@ const Layout: React.FC = () => {
const handleLogout = () => {
Cookies.remove("token");
window.location.pathname = "/";
setIsLoggedIn(false);
};