diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:09:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:09:59 +0200 |
| commit | 2db55c3d261ddee52019bbd06dc5f6545db39c16 (patch) | |
| tree | 4afe164982b81ca8cbd239e9f08567e8ae7fb2cf /frontend/views/index/index.container.js | |
| parent | 42d5e59335d97aa0cf165f2aedf8d04f60db9310 (diff) | |
form for making a new graph. add username field to db
Diffstat (limited to 'frontend/views/index/index.container.js')
| -rw-r--r-- | frontend/views/index/index.container.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/frontend/views/index/index.container.js b/frontend/views/index/index.container.js new file mode 100644 index 0000000..7805e83 --- /dev/null +++ b/frontend/views/index/index.container.js @@ -0,0 +1,33 @@ +import React, { Component } from 'react' +import { Route } from 'react-router-dom' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' + +import './index.css' + +// import actions from '../../actions' +// import * as uploadActions from './upload.actions' + +import GraphIndex from './containers/graph.index' +import GraphNew from './containers/graph.new' + +class Container extends Component { + render() { + return ( + <div className='index'> + <Route exact path='/index/new' component={GraphNew} /> + <Route exact path='/index' component={GraphIndex} /> + </div> + ) + } +} + +const mapStateToProps = state => ({ + // upload: state.upload, +}) + +const mapDispatchToProps = dispatch => ({ + // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(Container) |
