25 lines
721 B
JavaScript
25 lines
721 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
selectIsFetchingClaimListMine,
|
|
selectFileListPublishedSort,
|
|
selectMyClaimsWithoutChannels,
|
|
} from 'lbry-redux';
|
|
import { doNavigate } from 'redux/actions/navigation';
|
|
import { doCheckPendingPublishes } from 'redux/actions/publish';
|
|
import FileListPublished from './view';
|
|
|
|
const select = state => ({
|
|
claims: selectMyClaimsWithoutChannels(state),
|
|
fetching: selectIsFetchingClaimListMine(state),
|
|
sortBy: selectFileListPublishedSort(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
checkPendingPublishes: () => dispatch(doCheckPendingPublishes()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(FileListPublished);
|