Build issue; Grid items

This commit is contained in:
James Barnsley
2016-10-25 14:09:53 +13:00
parent 3f055df3f2
commit 5372cd0334
17 changed files with 195 additions and 125 deletions

View File

@ -1,6 +1,6 @@
import React, { PropTypes } from 'react'
import AlbumGridItem from './AlbumGridItem'
import GridItem from './GridItem'
export default class AlbumGrid extends React.Component{
@ -15,7 +15,9 @@ export default class AlbumGrid extends React.Component{
{
this.props.items.items.map(
(album, index) => {
return <AlbumGridItem item={album} key={index} />
var link = album.uri;
if( album.album ) link = album.album.uri;
return <GridItem item={album} key={index} link={'/album/'+link} />
}
)
}