lbry-desktop/src/ui/component/fileList/index.js
2019-03-04 23:48:04 -05:00

16 lines
379 B
JavaScript

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