summaryrefslogtreecommitdiff
path: root/frontend/views
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-03 23:27:50 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-03 23:27:50 +0200
commitbe577a90cd244a3f81537a1d9f370dd18838cddb (patch)
tree4219cc89ba8737eecf782b3e5c0a3c1be2483591 /frontend/views
parentc2085dd105b8dd4db41dbf6fb8d6e2d03f61edd2 (diff)
fixing layout
Diffstat (limited to 'frontend/views')
-rw-r--r--frontend/views/index/index.container.js12
-rw-r--r--frontend/views/page/page.container.js2
2 files changed, 9 insertions, 5 deletions
diff --git a/frontend/views/index/index.container.js b/frontend/views/index/index.container.js
index 2da89cb..c6cb819 100644
--- a/frontend/views/index/index.container.js
+++ b/frontend/views/index/index.container.js
@@ -19,12 +19,14 @@ class Container extends Component {
}
render() {
return (
- <div className='body'>
+ <div>
<Header />
- <div className='index'>
- <Route exact path='/index/new' component={GraphNew} />
- <Route exact path='/index/:id/edit' component={GraphEdit} />
- <Route exact path='/index' component={GraphIndex} />
+ <div className='body'>
+ <div className='index'>
+ <Route exact path='/index/new' component={GraphNew} />
+ <Route exact path='/index/:id/edit' component={GraphEdit} />
+ <Route exact path='/index' component={GraphIndex} />
+ </div>
</div>
</div>
)
diff --git a/frontend/views/page/page.container.js b/frontend/views/page/page.container.js
index 6993632..0c366ab 100644
--- a/frontend/views/page/page.container.js
+++ b/frontend/views/page/page.container.js
@@ -44,6 +44,8 @@ class PageContainer extends Component {
actions.site.setSiteTitle(data.res.title)
if (!data.res.tiles.length) {
this.props.pageActions.showAddTileForm()
+ } else {
+ this.props.pageActions.hideAddTileForm()
}
})
}