Polished margin of all pages and fixed logout not clearing token

This commit is contained in:
Keannu Christian Bernasol 2023-03-06 14:28:18 +08:00
parent 48ed8f45c6
commit 18d9fbe1ef
13 changed files with 169 additions and 16 deletions

View file

@ -20,6 +20,7 @@ export default function Logout(props: props) {
async function logout() {
await dispatch(toggle_login());
localStorage.removeItem("token");
navigate("/");
}