import React, { PropTypes } from 'react' import { Link, browserHistory } from 'react-router' import Thumbnail from './Thumbnail' import ArtistSentence from './ArtistSentence' export default class GridItem extends React.Component{ constructor(props) { super(props); } handleClick(e){ if( e.target.tagName.toLowerCase() !== 'a' ){ browserHistory.push( this.props.link ); } } render(){ var item = this.props.item; if( typeof(item.album) !== 'undefined' ){ item.album.added_at = item.added_at; item = item.album; } return (