blob: e92dbbef96824b2fd979a62b59df7c5f4f8d2b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { connect } from 'react-redux'
import { addFile, addFiles } from '../actions'
import BrowserView from '../components/Browser/BrowserView.jsx'
const mapStateToProps = state => state.folders
const mapDispatchToProps = (dispatch, ownProps) => ({
addFile: (file) => {
dispatch(addFile(file))
},
addFiles: (files) => {
dispatch(addFiles(files))
},
})
const Browser = connect(
mapStateToProps,
mapDispatchToProps
)( BrowserView )
export default Browser
|