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