small fixes and cleanup after review

This commit is contained in:
Eduard Heimbuch
2019-10-17 09:33:54 +02:00
parent 63f773a206
commit e91a3eac6a
6 changed files with 9 additions and 51 deletions

View File

@@ -38,10 +38,10 @@ class App extends Component<Props> {
}
render() {
const {me, loading, error, authenticated, links, t} = this.props;
const { me, loading, error, authenticated, links, t } = this.props;
let content;
const navigation = authenticated ? <PrimaryNavigation links={links}/> : "";
const navigation = authenticated ? <PrimaryNavigation links={links} /> : "";
if (loading) {
content = <Loading />;
@@ -60,7 +60,7 @@ class App extends Component<Props> {
<div className="App">
<Header>{navigation}</Header>
{content}
{authenticated && <Footer me={me}/>}
{authenticated && <Footer me={me} />}
</div>
);
}