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 if (index.loading) { return (
) } return (
welcome, swimmer + new project
) } } const mapStateToProps = state => ({ index: state.graph.index, }) const mapDispatchToProps = dispatch => ({ // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), }) export default connect(mapStateToProps, mapDispatchToProps)(GraphIndex)