diff options
Diffstat (limited to 'frontend/views')
| -rw-r--r-- | frontend/views/index/index.container.js | 12 | ||||
| -rw-r--r-- | frontend/views/page/page.container.js | 2 |
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() } }) } |
