From d192242065ee35ca922c1433a5ea5eb83422261c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 27 Jun 2020 17:03:30 +0200 Subject: building... --- .../frontend/views/index/containers/graph.index.js | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 animism-align/frontend/views/index/containers/graph.index.js (limited to 'animism-align/frontend/views/index/containers/graph.index.js') 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 ( -
- -
- ) - } - // console.log(state) - return ( -
-
- welcome, swimmer - + new project -
- {index.order.map(id => { - const graph = index.lookup[id] - return ( -
- {graph.title} - {'edit project'} -
- ) - })} -
- ) - } -} - -const mapStateToProps = state => ({ - index: state.graph.index, -}) - -const mapDispatchToProps = dispatch => ({ - // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(GraphIndex) -- cgit v1.2.3-70-g09d2