Skip to content

BurgerMenu on mobile view could benefit from a logout option #281

Description

@johngribbin

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();
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions