Final components done, dynamic language selector

This commit is contained in:
James Barnsley
2020-07-23 21:07:08 +12:00
parent efed79e801
commit 2a0e088b71
45 changed files with 1186 additions and 645 deletions

View File

@ -176,7 +176,10 @@ class Playlist extends React.Component {
inLibrary = () => {
const { uri } = this.props;
const libraryName = `${uriSource(uri)}_library_playlists`;
const { [libraryName]: library = [] } = this.props;
const { [libraryName]: library } = this.props;
if (!library) return false;
return library.indexOf(uri) > -1;
}