mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-06-30 01:15:45 +08:00
Polished margin of all pages and fixed logout not clearing token
This commit is contained in:
parent
48ed8f45c6
commit
18d9fbe1ef
13 changed files with 169 additions and 16 deletions
|
@ -20,6 +20,7 @@ export default function Logout(props: props) {
|
|||
|
||||
async function logout() {
|
||||
await dispatch(toggle_login());
|
||||
localStorage.removeItem("token");
|
||||
navigate("/");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue