2016-10-20 21:38:01 +13:00
|
|
|
|
2019-02-10 19:51:33 +13:00
|
|
|
import React from 'react';
|
2018-10-17 21:33:54 +13:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
import { bindActionCreators } from 'redux';
|
|
|
|
|
import AlbumGrid from '../../components/AlbumGrid';
|
|
|
|
|
import List from '../../components/List';
|
|
|
|
|
import Header from '../../components/Header';
|
|
|
|
|
import DropdownField from '../../components/Fields/DropdownField';
|
|
|
|
|
import FilterField from '../../components/Fields/FilterField';
|
|
|
|
|
import LazyLoadListener from '../../components/LazyLoadListener';
|
|
|
|
|
import Icon from '../../components/Icon';
|
|
|
|
|
import * as coreActions from '../../services/core/actions';
|
|
|
|
|
import * as uiActions from '../../services/ui/actions';
|
|
|
|
|
import * as mopidyActions from '../../services/mopidy/actions';
|
|
|
|
|
import * as googleActions from '../../services/google/actions';
|
|
|
|
|
import * as spotifyActions from '../../services/spotify/actions';
|
2020-03-03 16:39:37 +13:00
|
|
|
import { sortItems, applyFilter } from '../../util/arrays';
|
2020-09-07 21:04:28 +12:00
|
|
|
import { collate } from '../../util/format';
|
|
|
|
|
import Button from '../../components/Button';
|
2020-07-19 20:41:14 +12:00
|
|
|
import { i18n, I18n } from '../../locale';
|
2020-09-13 20:59:46 +12:00
|
|
|
import { isLoading } from '../../util/helpers';
|
|
|
|
|
import Loader from '../../components/Loader';
|
2016-10-20 21:38:01 +13:00
|
|
|
|
2019-10-09 09:42:20 +13:00
|
|
|
class LibraryAlbums extends React.Component {
|
2019-09-05 15:36:11 +12:00
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
|
|
this.state = {
|
|
|
|
|
filter: '',
|
|
|
|
|
limit: 50,
|
|
|
|
|
per_page: 50,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-15 13:50:39 +13:00
|
|
|
componentDidMount() {
|
2020-07-19 20:41:14 +12:00
|
|
|
const {
|
|
|
|
|
location: {
|
|
|
|
|
state = {},
|
|
|
|
|
},
|
|
|
|
|
uiActions: {
|
|
|
|
|
setWindowTitle,
|
|
|
|
|
},
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
2019-11-15 13:50:39 +13:00
|
|
|
// Restore any limit defined in our location state
|
2019-09-05 15:36:11 +12:00
|
|
|
if (state.limit) {
|
|
|
|
|
this.setState({
|
|
|
|
|
limit: state.limit,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
setWindowTitle(i18n('library.albums.title'));
|
2020-08-12 08:06:24 +12:00
|
|
|
this.getMopidyLibrary();
|
|
|
|
|
this.getGoogleLibrary();
|
|
|
|
|
this.getSpotifyLibrary();
|
|
|
|
|
}
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-08-12 08:06:24 +12:00
|
|
|
componentDidUpdate = ({ source: prevSource }) => {
|
|
|
|
|
const { source } = this.props;
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-08-12 08:06:24 +12:00
|
|
|
if (source !== prevSource) {
|
|
|
|
|
this.getMopidyLibrary();
|
|
|
|
|
this.getGoogleLibrary();
|
|
|
|
|
this.getSpotifyLibrary();
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-07 21:04:28 +12:00
|
|
|
onRefresh = () => {
|
|
|
|
|
const { uiActions: { hideContextMenu } } = this.props;
|
|
|
|
|
|
|
|
|
|
hideContextMenu();
|
|
|
|
|
this.getMopidyLibrary(true);
|
|
|
|
|
this.getGoogleLibrary(true);
|
|
|
|
|
this.getSpotifyLibrary(true);
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-11 22:13:06 +12:00
|
|
|
getMopidyLibrary = (forceRefetch = false) => {
|
2020-03-12 08:31:32 +13:00
|
|
|
const {
|
|
|
|
|
source,
|
2020-09-05 11:49:28 +12:00
|
|
|
coreActions: {
|
|
|
|
|
loadLibrary,
|
2020-08-12 08:06:24 +12:00
|
|
|
},
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
if (source !== 'local' && source !== 'all') return;
|
|
|
|
|
|
2020-09-11 22:13:06 +12:00
|
|
|
loadLibrary('mopidy:library:albums', { forceRefetch });
|
2020-08-12 08:06:24 +12:00
|
|
|
};
|
|
|
|
|
|
2020-09-11 22:13:06 +12:00
|
|
|
getGoogleLibrary = (forceRefetch = false) => {
|
2020-08-12 08:06:24 +12:00
|
|
|
const {
|
|
|
|
|
source,
|
|
|
|
|
google_available,
|
2020-09-05 11:49:28 +12:00
|
|
|
coreActions: {
|
|
|
|
|
loadLibrary,
|
2020-08-12 08:06:24 +12:00
|
|
|
},
|
2020-03-12 08:31:32 +13:00
|
|
|
} = this.props;
|
|
|
|
|
|
2020-08-12 08:06:24 +12:00
|
|
|
if (!google_available) return;
|
|
|
|
|
if (source !== 'google' && source !== 'all') return;
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-09-11 22:13:06 +12:00
|
|
|
loadLibrary('google:library:albums', { forceRefetch });
|
2020-08-12 08:06:24 +12:00
|
|
|
};
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-09-11 22:13:06 +12:00
|
|
|
getSpotifyLibrary = (forceRefetch = false) => {
|
2020-08-12 08:06:24 +12:00
|
|
|
const {
|
|
|
|
|
source,
|
|
|
|
|
spotify_available,
|
2020-09-05 11:49:28 +12:00
|
|
|
coreActions: {
|
|
|
|
|
loadLibrary,
|
2020-08-12 08:06:24 +12:00
|
|
|
},
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
if (!spotify_available) return;
|
|
|
|
|
if (source !== 'spotify' && source !== 'all') return;
|
|
|
|
|
|
2020-09-11 22:13:06 +12:00
|
|
|
loadLibrary('spotify:library:albums', { forceRefetch });
|
2020-08-12 08:06:24 +12:00
|
|
|
};
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
handleContextMenu = (e, item) => {
|
|
|
|
|
const {
|
|
|
|
|
uiActions: {
|
|
|
|
|
showContextMenu,
|
|
|
|
|
},
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
showContextMenu({
|
2019-09-05 15:36:11 +12:00
|
|
|
e,
|
|
|
|
|
context: 'album',
|
|
|
|
|
uris: [item.uri],
|
|
|
|
|
items: [item],
|
2020-07-19 20:41:14 +12:00
|
|
|
});
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
loadMore = () => {
|
|
|
|
|
const {
|
|
|
|
|
limit,
|
|
|
|
|
per_page,
|
|
|
|
|
} = this.state;
|
|
|
|
|
const {
|
|
|
|
|
location: {
|
|
|
|
|
state,
|
|
|
|
|
},
|
|
|
|
|
history,
|
|
|
|
|
} = this.props;
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
const new_limit = limit + per_page;
|
2019-09-05 15:36:11 +12:00
|
|
|
this.setState({ limit: new_limit });
|
2020-07-19 20:41:14 +12:00
|
|
|
history.replace({ state: { ...state, limit: new_limit } });
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
setSort = (value) => {
|
|
|
|
|
const {
|
|
|
|
|
sort,
|
|
|
|
|
sort_reverse,
|
|
|
|
|
uiActions: {
|
|
|
|
|
set,
|
|
|
|
|
},
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
2019-09-05 15:36:11 +12:00
|
|
|
let reverse = false;
|
2020-07-19 20:41:14 +12:00
|
|
|
if (sort === value) reverse = !sort_reverse;
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
set({
|
2019-09-05 15:36:11 +12:00
|
|
|
library_albums_sort_reverse: reverse,
|
|
|
|
|
library_albums_sort: value,
|
2020-07-19 20:41:14 +12:00
|
|
|
});
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
|
2020-07-19 20:41:14 +12:00
|
|
|
renderView = () => {
|
2020-09-05 11:49:28 +12:00
|
|
|
const {
|
|
|
|
|
spotify_library,
|
|
|
|
|
google_library,
|
|
|
|
|
mopidy_library,
|
|
|
|
|
items,
|
|
|
|
|
source,
|
|
|
|
|
sort,
|
|
|
|
|
sort_reverse,
|
|
|
|
|
view,
|
2020-09-13 20:59:46 +12:00
|
|
|
load_queue,
|
2020-09-05 11:49:28 +12:00
|
|
|
} = this.props;
|
|
|
|
|
const {
|
|
|
|
|
limit,
|
|
|
|
|
filter,
|
|
|
|
|
} = this.state;
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-09-13 20:59:46 +12:00
|
|
|
if (isLoading(load_queue, ['(.*):library:albums'])) {
|
|
|
|
|
return <Loader body loading />;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
let albums = [
|
|
|
|
|
...(source === 'all' || source === 'spotify' ? collate(spotify_library, { items }).items : []),
|
|
|
|
|
...(source === 'all' || source === 'google' ? collate(google_library, { items }).items : []),
|
|
|
|
|
...(source === 'all' || source === 'local' ? collate(mopidy_library, { items }).items : []),
|
|
|
|
|
];
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
if (sort) {
|
|
|
|
|
albums = sortItems(albums, sort, sort_reverse);
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
if (filter && filter !== '') {
|
|
|
|
|
albums = applyFilter('name', filter, albums);
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Apply our lazy-load-rendering
|
|
|
|
|
const total_albums = albums.length;
|
2020-09-05 11:49:28 +12:00
|
|
|
albums = albums.slice(0, limit);
|
2019-09-05 15:36:11 +12:00
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
if (view === 'list') {
|
2019-09-05 15:36:11 +12:00
|
|
|
return (
|
|
|
|
|
<section className="content-wrapper">
|
|
|
|
|
<List
|
|
|
|
|
handleContextMenu={(e, item) => this.handleContextMenu(e, item)}
|
|
|
|
|
rows={albums}
|
|
|
|
|
thumbnail
|
2020-04-19 20:57:43 +12:00
|
|
|
details={['artists', 'tracks_uris.length', 'last_modified']}
|
2019-09-05 15:36:11 +12:00
|
|
|
right_column={['added_at']}
|
|
|
|
|
className="albums"
|
2019-10-09 09:42:20 +13:00
|
|
|
link_prefix="/album/"
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
<LazyLoadListener
|
2020-09-05 11:49:28 +12:00
|
|
|
loadKey={total_albums > limit ? limit : total_albums}
|
|
|
|
|
showLoader={limit < total_albums}
|
2020-07-19 20:41:14 +12:00
|
|
|
loadMore={this.loadMore}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<section className="content-wrapper">
|
|
|
|
|
<AlbumGrid
|
|
|
|
|
handleContextMenu={(e, item) => this.handleContextMenu(e, item)}
|
2019-10-09 09:42:20 +13:00
|
|
|
albums={albums}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
<LazyLoadListener
|
2020-09-05 11:49:28 +12:00
|
|
|
loadKey={total_albums > limit ? limit : total_albums}
|
|
|
|
|
showLoader={limit < total_albums}
|
2019-10-09 09:42:20 +13:00
|
|
|
loadMore={() => this.loadMore()}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
</section>
|
2019-10-09 09:42:20 +13:00
|
|
|
);
|
2019-09-05 15:36:11 +12:00
|
|
|
}
|
|
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
render = () => {
|
|
|
|
|
const {
|
|
|
|
|
spotify_available,
|
|
|
|
|
google_available,
|
|
|
|
|
sort,
|
|
|
|
|
view,
|
|
|
|
|
source,
|
|
|
|
|
sort_reverse,
|
2020-09-07 21:04:28 +12:00
|
|
|
uiActions,
|
2020-09-05 11:49:28 +12:00
|
|
|
} = this.props;
|
|
|
|
|
const {
|
|
|
|
|
filter,
|
|
|
|
|
per_page,
|
|
|
|
|
} = this.state;
|
|
|
|
|
|
2019-09-05 15:36:11 +12:00
|
|
|
const source_options = [
|
|
|
|
|
{
|
|
|
|
|
value: 'all',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.all'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'local',
|
2020-08-01 21:15:17 +12:00
|
|
|
label: i18n('services.mopidy.local'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
if (spotify_available) {
|
2019-09-05 15:36:11 +12:00
|
|
|
source_options.push({
|
|
|
|
|
value: 'spotify',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('services.spotify.title'),
|
2019-09-05 15:36:11 +12:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
if (google_available) {
|
2019-09-05 15:36:11 +12:00
|
|
|
source_options.push({
|
|
|
|
|
value: 'google',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('services.google.title'),
|
2019-09-05 15:36:11 +12:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const view_options = [
|
|
|
|
|
{
|
|
|
|
|
value: 'thumbnails',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.thumbnails'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'list',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.list'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const sort_options = [
|
|
|
|
|
{
|
|
|
|
|
value: null,
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.as_loaded'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'name',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.name'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'artists.first.name',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.artist'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
2020-04-19 20:57:43 +12:00
|
|
|
value: 'last_modified',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.updated'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'tracks_uris.length',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.tracks'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'uri',
|
2020-07-19 20:41:14 +12:00
|
|
|
label: i18n('fields.filters.source'),
|
2019-09-05 15:36:11 +12:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const options = (
|
2019-10-13 09:29:41 +13:00
|
|
|
<div className="header__options__wrapper">
|
2019-09-05 15:36:11 +12:00
|
|
|
<FilterField
|
2020-09-05 11:49:28 +12:00
|
|
|
initialValue={filter}
|
|
|
|
|
handleChange={(value) => this.setState({ filter: value, limit: per_page })}
|
2020-09-07 21:04:28 +12:00
|
|
|
onSubmit={() => uiActions.hideContextMenu()}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
<DropdownField
|
2019-10-13 09:29:41 +13:00
|
|
|
icon="swap_vert"
|
2020-07-19 20:41:14 +12:00
|
|
|
name={i18n('fields.sort')}
|
2020-09-05 11:49:28 +12:00
|
|
|
value={sort}
|
2019-10-13 09:29:41 +13:00
|
|
|
valueAsLabel
|
2019-09-05 15:36:11 +12:00
|
|
|
options={sort_options}
|
2020-09-05 11:49:28 +12:00
|
|
|
selected_icon={sort ? (sort_reverse ? 'keyboard_arrow_up' : 'keyboard_arrow_down') : null}
|
2020-09-07 21:04:28 +12:00
|
|
|
handleChange={(val) => { this.setSort(val); uiActions.hideContextMenu(); }}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
<DropdownField
|
|
|
|
|
icon="visibility"
|
2020-07-19 20:41:14 +12:00
|
|
|
name={i18n('fields.view')}
|
2020-09-05 11:49:28 +12:00
|
|
|
value={view}
|
2019-10-13 09:29:41 +13:00
|
|
|
valueAsLabel
|
2019-09-05 15:36:11 +12:00
|
|
|
options={view_options}
|
2020-09-07 21:04:28 +12:00
|
|
|
handleChange={(val) => { uiActions.set({ library_albums_view: val }); uiActions.hideContextMenu(); }}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
|
|
|
|
<DropdownField
|
|
|
|
|
icon="cloud"
|
2020-07-19 20:41:14 +12:00
|
|
|
name={i18n('fields.source')}
|
2020-09-05 11:49:28 +12:00
|
|
|
value={source}
|
2019-10-13 09:29:41 +13:00
|
|
|
valueAsLabel
|
2019-09-05 15:36:11 +12:00
|
|
|
options={source_options}
|
2020-09-07 21:04:28 +12:00
|
|
|
handleChange={(val) => { uiActions.set({ library_albums_source: val }); uiActions.hideContextMenu(); }}
|
2019-09-05 15:36:11 +12:00
|
|
|
/>
|
2020-09-07 21:04:28 +12:00
|
|
|
<Button
|
|
|
|
|
noHover
|
|
|
|
|
onClick={this.onRefresh}
|
|
|
|
|
tracking={{ category: 'LibraryAlbums', action: 'Refresh' }}
|
|
|
|
|
>
|
|
|
|
|
<Icon name="refresh" />
|
|
|
|
|
<I18n path="actions.refresh" />
|
|
|
|
|
</Button>
|
2019-10-13 09:29:41 +13:00
|
|
|
</div>
|
2019-09-05 15:36:11 +12:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="view library-albums-view">
|
2020-09-07 21:04:28 +12:00
|
|
|
<Header options={options} uiActions={uiActions}>
|
2019-09-05 15:36:11 +12:00
|
|
|
<Icon name="album" type="material" />
|
2020-07-19 20:41:14 +12:00
|
|
|
<I18n path="library.albums.title" />
|
2019-09-05 15:36:11 +12:00
|
|
|
</Header>
|
|
|
|
|
{this.renderView()}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2016-10-20 21:38:01 +13:00
|
|
|
}
|
|
|
|
|
|
2020-09-05 11:49:28 +12:00
|
|
|
const mapStateToProps = (state) => ({
|
2019-09-05 15:36:11 +12:00
|
|
|
mopidy_uri_schemes: state.mopidy.uri_schemes,
|
|
|
|
|
load_queue: state.ui.load_queue,
|
2020-09-05 11:49:28 +12:00
|
|
|
items: state.core.items,
|
2020-09-06 13:53:22 +12:00
|
|
|
mopidy_library: state.core.libraries['mopidy:library:albums'] || { items_uris: [] },
|
|
|
|
|
spotify_library: state.core.libraries['spotify:library:albums'] || { items_uris: [] },
|
|
|
|
|
google_library: state.core.libraries['google:library:albums'] || { items_uris: [] },
|
2020-05-12 20:32:48 +12:00
|
|
|
google_available: (state.mopidy.uri_schemes && state.mopidy.uri_schemes.includes('gmusic:')),
|
|
|
|
|
spotify_available: state.spotify.access_token,
|
2019-09-05 15:36:11 +12:00
|
|
|
view: state.ui.library_albums_view,
|
|
|
|
|
source: (state.ui.library_albums_source ? state.ui.library_albums_source : 'all'),
|
|
|
|
|
sort: (state.ui.library_albums_sort ? state.ui.library_albums_sort : null),
|
|
|
|
|
sort_reverse: (state.ui.library_albums_sort_reverse ? state.ui.library_albums_sort_reverse : false),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
|
|
|
coreActions: bindActionCreators(coreActions, dispatch),
|
|
|
|
|
uiActions: bindActionCreators(uiActions, dispatch),
|
|
|
|
|
mopidyActions: bindActionCreators(mopidyActions, dispatch),
|
|
|
|
|
googleActions: bindActionCreators(googleActions, dispatch),
|
|
|
|
|
spotifyActions: bindActionCreators(spotifyActions, dispatch),
|
|
|
|
|
});
|
|
|
|
|
|
2019-10-09 09:42:20 +13:00
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(LibraryAlbums);
|