2017-04-23 18:10:45 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
connect
|
|
|
|
} from 'react-redux'
|
2017-05-11 02:59:47 +02:00
|
|
|
import {
|
|
|
|
doFetchPublishedContent,
|
|
|
|
} from 'actions/content'
|
2017-05-01 06:51:19 +02:00
|
|
|
import {
|
|
|
|
selectFetchingPublishedContent,
|
|
|
|
} from 'selectors/content'
|
|
|
|
import {
|
|
|
|
selectPublishedFileInfo,
|
|
|
|
} from 'selectors/file_info'
|
|
|
|
import {
|
|
|
|
doNavigate,
|
|
|
|
} from 'actions/app'
|
2017-04-23 18:10:45 +02:00
|
|
|
import FileListPublished from './view'
|
|
|
|
|
2017-05-01 06:51:19 +02:00
|
|
|
const select = (state) => ({
|
|
|
|
publishedContent: selectPublishedFileInfo(state),
|
|
|
|
fetching: selectFetchingPublishedContent(state),
|
|
|
|
})
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
navigate: (path) => dispatch(doNavigate(path)),
|
2017-05-11 02:59:47 +02:00
|
|
|
fetchFileListPublished: () => dispatch(doFetchPublishedContent()),
|
2017-05-01 06:51:19 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
export default connect(select, perform)(FileListPublished)
|