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 {
|
2017-05-19 01:14:26 +02:00
|
|
|
doFetchFileInfosAndPublishedClaims,
|
|
|
|
} from 'actions/file_info'
|
2017-05-01 06:51:19 +02:00
|
|
|
import {
|
2017-05-19 01:14:26 +02:00
|
|
|
selectFileInfosPublished,
|
|
|
|
selectFileListDownloadedOrPublishedIsPending
|
2017-05-01 06:51:19 +02:00
|
|
|
} 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) => ({
|
2017-05-19 01:14:26 +02:00
|
|
|
fileInfos: selectFileInfosPublished(state),
|
|
|
|
isPending: selectFileListDownloadedOrPublishedIsPending(state),
|
2017-05-01 06:51:19 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
navigate: (path) => dispatch(doNavigate(path)),
|
2017-05-19 01:14:26 +02:00
|
|
|
fetchFileListPublished: () => dispatch(doFetchFileInfosAndPublishedClaims()),
|
2017-05-01 06:51:19 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
export default connect(select, perform)(FileListPublished)
|