Files
JavaScriptServices/samples/react/MusicStore/ReactApp/components/public/AlbumTile.tsx
2016-03-01 01:10:43 +00:00

18 lines
594 B
TypeScript

import * as React from 'react';
import { Link } from 'react-router';
import { Album } from '../../store/FeaturedAlbums';
export class AlbumTile extends React.Component<{ album: Album, key?: any }, void> {
public render() {
const { album } = this.props;
return (
<li className="col-lg-2 col-md-2 col-sm-2 col-xs-4 container">
<Link to={ '/album/' + album.AlbumId }>
<img alt={ album.Title } src={ album.AlbumArtUrl } />
<h4>{ album.Title }</h4>
</Link>
</li>
);
}
}