blob: 3e6554d4a6464a25d2eb3862fcdb0f69bca2dcaf (
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 { addFiles, closeFolder } from '../actions'
import FolderListView from '../components/Browser/Files/FileListView.jsx'
const mapStateToProps = (state) => (state.folders)
const mapDispatchToProps = (dispatch, ownProps) => ({
addFiles: (files) => {
dispatch(addFiles(files))
},
onClose: () => {
dispatch(closeFolder(ownProps.folder))
},
})
const FolderList = connect(
mapStateToProps,
mapDispatchToProps
)(FolderListView)
export default FolderList
|