lbry-desktop/src/ui/component/fileList/index.js

17 lines
379 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2018-10-22 22:02:19 -04:00
import { selectClaimsById, doSetFileListSort } from 'lbry-redux';
import FileList from './view';
const select = state => ({
claimsById: selectClaimsById(state),
});
2018-10-22 22:02:19 -04:00
const perform = dispatch => ({
setFileListSort: (page, value) => dispatch(doSetFileListSort(page, value)),
});
2018-10-22 22:02:19 -04:00
export default connect(
select,
perform
)(FileList);