bizworld / jammming-app

A React web application that allows users to search the Spotify library, create a custom playlist, then save it to their Spotify account.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tracks not being passed through properly.

farishkash opened this issue · comments

jammming

Is this not finished?

 render() {
    return (
      <div className="Track">
        <div className="Track-information">
          <h3>{/* track name will go here */}</h3>
          <p>{/* track artist will go here */} | {/* track album will go here */}</p>
        </div>

        {this.renderAction()}
      </div>
    );
  }
}

The h3 and p should be changed to

<h3>{this.props.track.name}</h3>
          <p>{this.props.track.artist} | {this.props.track.album}</p>

And it works on the searchResults after this change.

Thanks @farishkash, the changes have been made.