import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { createStore, bindActionCreators } from 'redux' import { hashHistory } from 'react-router' import Thumbnail from './Thumbnail' import GridItem from './GridItem' import * as helpers from '../helpers' import * as uiActions from '../services/ui/actions' import * as lastfmActions from '../services/lastfm/actions' class ArtistGrid extends React.Component{ constructor(props){ super(props); } handleContextMenu(e,item){ console.log(item); e.preventDefault(); var data = { e: e, context: 'artist', uris: [item.uri], items: [item] } this.props.uiActions.showContextMenu(data) } render(){ if (this.props.artists){ var className = "grid artist-grid" if (this.props.className) className += ' '+this.props.className if (this.props.single_row) className += ' single-row' return (