blob: c163b92e80f8fe83f4e8091ed12b75a1aa949972 (
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
36
37
38
39
40
|
import React, { Component } from 'react'
import { Route, Link } from 'react-router-dom'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import actions from '../../actions'
import * as uploadActions from './upload.actions'
import UploadMenu from './components/upload.menu'
import UploadIndex from './components/upload.index'
import UploadShow from './components/upload.show'
class Container extends Component {
render() {
return (
<div className='row upload'>
<div>
<Route exact path='/upload/:id/show/' component={UploadShow} />
<UploadIndex {...this.props} />
</div>
</div>
)
}
}
/*
<Route exact path='/collection/:id/show/' component={CollectionShow} />
<Route exact path='/collection/' component={CollectionIndex} />
*/
const mapStateToProps = state => ({
upload: state.upload,
searchOptions: state.search.options,
})
const mapDispatchToProps = dispatch => ({
uploadActions: bindActionCreators({ ...uploadActions }, dispatch),
})
export default connect(mapStateToProps, mapDispatchToProps)(Container)
|