trusat-frontend icon indicating copy to clipboard operation
trusat-frontend copied to clipboard

BurgerMenu on mobile view could benefit from a logout option

Open johngribbin opened this issue 4 years ago • 2 comments

Screen Shot 2020-04-01 at 12 39 24 PM

  • This should be a quick fix, and would save the user from visiting their settings page and logging out from there
  • The function to log a user out can be taken from the AccountSettings component and reused for this:
  const logout = () => {
    localStorage.removeItem("trusat-login-credentials");
    localStorage.removeItem("trusat-allow-cookies");
    history.push("/");
    window.location.reload();
  };

johngribbin avatar Apr 01 '20 16:04 johngribbin

@johngribbin I would like to start collaborating on this issue! How about?

martinvarelaaaa avatar May 27 '20 15:05 martinvarelaaaa

@martinvarelaaaa Go for it Martín! Cheers :)

johngribbin avatar May 27 '20 16:05 johngribbin