Standardizing bracket syntax

This commit is contained in:
James Barnsley
2017-10-10 13:05:28 +13:00
parent 0ca37b0f62
commit 2ffa337ffa
116 changed files with 7451 additions and 3246 deletions

View File

@ -10,7 +10,7 @@ import * as spotifyActions from '../../services/spotify/actions'
class DiscoverCategories extends React.Component{
constructor(props) {
constructor(props){
super(props);
}

View File

@ -11,7 +11,7 @@ import * as spotifyActions from '../../services/spotify/actions'
class DiscoverCategory extends React.Component{
constructor(props) {
constructor(props){
super(props);
}
@ -19,18 +19,18 @@ class DiscoverCategory extends React.Component{
this.loadCategory()
}
componentWillReceiveProps( nextProps ){
if( nextProps.params.id != this.props.params.id ){
componentWillReceiveProps(nextProps){
if (nextProps.params.id != this.props.params.id){
this.loadCategory()
}
}
loadCategory(){
if (!this.props.category || !this.props.category.playlists_uris) this.props.spotifyActions.getCategory( this.props.params.id );
if (!this.props.category || !this.props.category.playlists_uris) this.props.spotifyActions.getCategory(this.props.params.id );
}
loadMore(){
this.props.spotifyActions.getURL( this.props.category.playlists_more, 'SPOTIFY_CATEGORY_PLAYLISTS_LOADED', 'category:'+this.props.params.id );
this.props.spotifyActions.getURL(this.props.category.playlists_more, 'SPOTIFY_CATEGORY_PLAYLISTS_LOADED', 'category:'+this.props.params.id );
}
render(){

View File

@ -16,7 +16,7 @@ import * as spotifyActions from '../../services/spotify/actions'
class DiscoverFeatured extends React.Component{
constructor(props) {
constructor(props){
super(props);
}

View File

@ -18,7 +18,7 @@ import * as spotifyActions from '../../services/spotify/actions'
class DiscoverNewReleases extends React.Component{
constructor(props) {
constructor(props){
super(props);
}

View File

@ -17,7 +17,7 @@ import * as spotifyActions from '../../services/spotify/actions'
class Discover extends React.Component{
constructor(props) {
constructor(props){
super(props)
this._autocomplete_timer = false