import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import Header from '../../components/Header' import AlbumGrid from '../../components/AlbumGrid' import LazyLoadListener from '../../components/LazyLoadListener' import * as helpers from '../../helpers' import * as uiActions from '../../services/ui/actions' import * as spotifyActions from '../../services/spotify/actions' class DiscoverNewReleases extends React.Component{ constructor(props) { super(props); } componentDidMount(){ if (!this.props.new_releases) this.props.spotifyActions.getNewReleases(); } loadMore(){ this.props.spotifyActions.getURL(this.props.new_releases_more, 'SPOTIFY_NEW_RELEASES_LOADED'); } render(){ if (helpers.isLoading(this.props.load_queue,['spotify_browse/new-releases'])){ return (