2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-22 22:02:19 -04:00
|
|
|
import { selectClaimsById, doSetFileListSort } from 'lbry-redux';
|
2017-12-21 18:08:54 -03:00
|
|
|
import FileList from './view';
|
2017-04-23 23:10:45 +07:00
|
|
|
|
2018-03-08 22:25:55 -08:00
|
|
|
const select = state => ({
|
|
|
|
claimsById: selectClaimsById(state),
|
|
|
|
});
|
2017-04-30 23:01:43 +07:00
|
|
|
|
2018-10-22 22:02:19 -04:00
|
|
|
const perform = dispatch => ({
|
|
|
|
setFileListSort: (page, value) => dispatch(doSetFileListSort(page, value)),
|
|
|
|
});
|
2017-04-30 23:01:43 +07:00
|
|
|
|
2018-10-22 22:02:19 -04:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(FileList);
|