From f6d7fcbb50ef57f1f7d7ca8cacd711ffd576e600 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 17:38:14 +0200 Subject: showing pages for graph. getting urls right --- frontend/views/index/index.container.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'frontend/views/index/index.container.js') diff --git a/frontend/views/index/index.container.js b/frontend/views/index/index.container.js index 0e7127a..1e2326b 100644 --- a/frontend/views/index/index.container.js +++ b/frontend/views/index/index.container.js @@ -5,7 +5,7 @@ import { connect } from 'react-redux' import './index.css' -// import actions from '../../actions' +import actions from '../../actions' // import * as uploadActions from './upload.actions' import GraphIndex from './containers/graph.index' @@ -13,6 +13,9 @@ import GraphNew from './containers/graph.new' import GraphEdit from './containers/graph.edit' class Container extends Component { + componentDidMount() { + actions.site.setSiteTitle("swimmer") + } render() { return (
@@ -24,12 +27,4 @@ class Container extends Component { } } -const mapStateToProps = state => ({ - // upload: state.upload, -}) - -const mapDispatchToProps = dispatch => ({ - // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(Container) +export default Container -- cgit v1.2.3-70-g09d2