diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-27 17:03:30 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-27 17:03:30 +0200 |
| commit | d192242065ee35ca922c1433a5ea5eb83422261c (patch) | |
| tree | 4fccba2be155d85efd58e7b41cee9cc705ea2955 /animism-align/frontend/views/index/containers/graph.index.js | |
| parent | 9beb386885dabad504235e446e7b301829c04265 (diff) | |
building...
Diffstat (limited to 'animism-align/frontend/views/index/containers/graph.index.js')
| -rw-r--r-- | animism-align/frontend/views/index/containers/graph.index.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/animism-align/frontend/views/index/containers/graph.index.js b/animism-align/frontend/views/index/containers/graph.index.js deleted file mode 100644 index 35c2d82..0000000 --- a/animism-align/frontend/views/index/containers/graph.index.js +++ /dev/null @@ -1,53 +0,0 @@ -import React, { Component } from 'react' -import { Link } from 'react-router-dom' -import { bindActionCreators } from 'redux' -import { connect } from 'react-redux' - -import { Loader } from '../../../common' -import actions from '../../../actions' -// import * as uploadActions from './upload.actions' - -class GraphIndex extends Component { - componentDidMount() { - actions.graph.index() - } - render() { - const { index } = this.props - // console.log(this.props) - if (!index.order) { - return ( - <div className='graphIndex'> - <Loader /> - </div> - ) - } - // console.log(state) - return ( - <div className='graphIndex'> - <div> - <b>welcome, swimmer</b> - <Link to='/index/new'>+ new project</Link> - </div> - {index.order.map(id => { - const graph = index.lookup[id] - return ( - <div key={id}> - <Link to={'/' + graph.path}>{graph.title}</Link> - <Link to={'/index/' + id + '/edit'}>{'edit project'}</Link> - </div> - ) - })} - </div> - ) - } -} - -const mapStateToProps = state => ({ - index: state.graph.index, -}) - -const mapDispatchToProps = dispatch => ({ - // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(GraphIndex) |
