lbry-desktop/ui/js/page/fileListPublished/index.js
2017-06-05 21:21:55 -07:00

22 lines
695 B
JavaScript

import React from 'react';
import { connect } from 'react-redux';
import { doFetchFileInfosAndPublishedClaims } from 'actions/file_info';
import {
selectFileInfosPublished,
selectFileListDownloadedOrPublishedIsPending
} from 'selectors/file_info';
import { doNavigate } from 'actions/app';
import FileListPublished from './view';
const select = state => ({
fileInfos: selectFileInfosPublished(state),
isPending: selectFileListDownloadedOrPublishedIsPending(state)
});
const perform = dispatch => ({
navigate: path => dispatch(doNavigate(path)),
fetchFileListPublished: () => dispatch(doFetchFileInfosAndPublishedClaims())
});
export default connect(select, perform)(FileListPublished);