View toggling; Enhanced List component

This commit is contained in:
James Barnsley
2016-11-21 16:26:47 +13:00
parent 8d1436996c
commit 6588790476
10 changed files with 197 additions and 42 deletions

View File

@ -17,14 +17,6 @@ export default class AlbumGrid extends React.Component{
{
this.props.albums.map(
(album, index) => {
// handle nested album objects (as in Album Library)
if( album.album ){
var flatAlbum = album.album;
flatAlbum.added_at = album.added_at;
album = flatAlbum;
}
return <GridItem item={album} key={index} link={'/album/'+album.uri} />
}
)