import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Link } from 'react-router' import TrackList from '../components/TrackList' import * as mopidyActions from '../services/mopidy/actions' import * as spotifyActions from '../services/spotify/actions' class LibraryTracks extends React.Component{ constructor(props) { super(props); } // on render componentDidMount(){ this.props.spotifyActions.getLibraryTracks(); } render(){ if( this.props.spotify.libraryAlbums ){ return (