guardian routes

This commit is contained in:
Mikola
2024-03-15 18:18:10 +03:00
parent 727d55798a
commit f2ad6b43bd
13 changed files with 267 additions and 165 deletions

View File

@ -91,11 +91,10 @@ export const ProfileHeader = () => {
});
}, []);
const handler = () => {
setIsLoggingOut(true);
const handler = (e) => {
e.preventDefault()
localStorage.clear();
dispatch(auth(false));
setIsLoggingOut(false);
navigate("/auth");
dispatch(setProfileInfo({}));
};