guardian routes
This commit is contained in:
@ -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({}));
|
||||
};
|
||||
|
Reference in New Issue
Block a user