guardian routes

This commit is contained in:
Mikola
2024-03-15 18:19:48 +03:00
parent f2ad6b43bd
commit 78f2b34810
7 changed files with 72 additions and 86 deletions

View File

@ -92,7 +92,7 @@ export const ProfileHeader = () => {
}, []);
const handler = (e) => {
e.preventDefault()
e.preventDefault();
localStorage.clear();
dispatch(auth(false));
navigate("/auth");