Files
Iris/src/js/components/ArtistList.js

29 lines
656 B
JavaScript
Raw Normal View History

import React, { PropTypes } from 'react'
import { Link } from 'react-router'
2016-10-25 21:36:33 +13:00
import Thumbnail from './Thumbnail'
export default class ArtistList extends React.Component{
constructor(props) {
super(props);
}
render(){
return (
2016-11-04 15:55:17 +13:00
<div className="artist-list">
{
this.props.artists.map( (artist, index) => {
var link = '/artist/' + artist.uri;
return (
2016-10-25 21:36:33 +13:00
<Link to={ link } key={artist.uri} className="artist">
<Thumbnail circle={true} size="small" images={artist.images} />
<span className="name">{ artist.name }</span>
</Link>
);
})
}
2016-11-04 15:55:17 +13:00
</div>
);
}
}