NPM issue with basetag; Basic styles

This commit is contained in:
James Barnsley
2016-10-24 21:26:01 +13:00
parent a89d87a960
commit 3f055df3f2
18 changed files with 251 additions and 93 deletions

View File

@ -3,6 +3,7 @@ import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Header from '../components/Header'
import TrackList from '../components/TrackList'
import AlbumGrid from '../components/AlbumGrid'
@ -30,10 +31,7 @@ class Artist extends React.Component{
if( this.props.spotify.artist ){
return (
<div>
<Header
icon="mic"
title={ this.props.spotify.artist.name }
/>
<Header icon="mic" title={ this.props.spotify.artist.name } />
<p>{ this.props.spotify.artist.followers.total.toLocaleString() } followers</p>
{ this.props.spotify.artist.tracks ? <TrackList tracks={ this.props.spotify.artist.tracks } /> : null }
{ this.props.spotify.artist_albums ? <AlbumGrid items={ this.props.spotify.artist_albums } /> : null }

View File

@ -31,10 +31,7 @@ class Playlist extends React.Component{
if( this.props.spotify.playlist ){
return (
<div>
<Header
icon="playlist"
title={ this.props.spotify.playlist.name }
/>
<Header icon="playlist" title={ this.props.spotify.playlist.name } />
<TrackList tracks={this.props.spotify.playlist.tracks.items} />
</div>
);