Run yarn format.

This commit is contained in:
Orne Brocaar
2022-11-01 10:28:57 +00:00
parent 5b3b44bce4
commit 577a33ec9a
5 changed files with 42 additions and 34 deletions

View File

@ -72,13 +72,13 @@ class Header extends Component<IProps, IState> {
if (!oidc.getEnabled() || oidc.getLogoutUrl() === "") {
SessionStore.logout(true, () => {
this.props.history.push("/login");
});
});
} else {
SessionStore.logout(false, () => {
window.location.assign(oidc.getLogoutUrl());
});
}
}
};
render() {
if (this.state.settings === undefined) {
@ -94,9 +94,7 @@ class Header extends Component<IProps, IState> {
<Link to={`/users/${this.props.user.getId()}/password`}>Change password</Link>
</Menu.Item>
)}
<Menu.Item onClick={this.onLogout}>
Logout
</Menu.Item>
<Menu.Item onClick={this.onLogout}>Logout</Menu.Item>
</Menu>
);

View File

@ -186,9 +186,7 @@ class SideMenu extends Component<RouteComponentProps, IState> {
key: "ns",
label: "Network Server",
icon: <CloudOutlined />,
children: [
{ key: "ns-regions", icon: <CompassOutlined />, label: <Link to="/regions">Regions</Link> },
],
children: [{ key: "ns-regions", icon: <CompassOutlined />, label: <Link to="/regions">Regions</Link> }],
});
}