referesh on logout implemented
This commit is contained in:
@@ -32,6 +32,7 @@ export default function UserExist() {
|
||||
const logoutUser = () => {
|
||||
localStorage.clear()
|
||||
navigate(siteLinks.login)
|
||||
window.location.reload()
|
||||
};
|
||||
|
||||
// Function to reset the activity time
|
||||
|
||||
@@ -28,6 +28,7 @@ export default function UserHeader(){
|
||||
const logout = () => {
|
||||
localStorage.clear()
|
||||
navigate(siteLinks.login, {replace: true})
|
||||
window.location.reload()
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -9,7 +9,8 @@ export default function UserMenu() {
|
||||
|
||||
const logout = () => {
|
||||
localStorage.clear()
|
||||
navigate('/login', {replace: true})
|
||||
navigate(siteLinks.login, {replace: true})
|
||||
window.location.reload()
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user