blob: 0e7127a2599c446a5fb4478b8b74c29502ff09e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
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'
import GraphEdit from './containers/graph.edit'
class Container extends Component {
render() {
return (
<div className='index'>
<Route exact path='/index/new' component={GraphNew} />
<Route exact path='/index/:id/edit' component={GraphEdit} />
<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)
|