238a64bca9
* improve playlists display * fix pagination * reset page on filter button * pagination updates if page param changes * carry collection active tab to playlists page
20 lines
738 B
JavaScript
20 lines
738 B
JavaScript
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router';
|
|
import {
|
|
selectMyPublishedPlaylistCollections,
|
|
selectMyUnpublishedCollections, // should probably distinguish types
|
|
// selectSavedCollections,
|
|
} from 'redux/selectors/collections';
|
|
import { selectFetchingMyCollections } from 'redux/selectors/claims';
|
|
import PlaylistsMine from './view';
|
|
|
|
const select = (state) => {
|
|
return {
|
|
publishedCollections: selectMyPublishedPlaylistCollections(state),
|
|
unpublishedCollections: selectMyUnpublishedCollections(state),
|
|
// savedCollections: selectSavedCollections(state),
|
|
fetchingCollections: selectFetchingMyCollections(state),
|
|
};
|
|
};
|
|
|
|
export default withRouter(connect(select)(PlaylistsMine));
|