Skip to content
Snippets Groups Projects
Commit 1ed577db authored by meskio's avatar meskio :tent:
Browse files

Render the SignIn if token is expired

parent 8085c38e
No related branches found
No related tags found
No related merge requests found
......@@ -160,9 +160,11 @@ class App extends React.Component {
}
render() {
let component = <Panel onLogout={this.logout} />;
let component;
if (!this.isLoged()) {
component = <SignIn onLogin={this.login} />;
} else {
component = <Panel onLogout={this.logout} />;
}
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment