Skip to content

Commit

Permalink
Added a message for when there are no movies in the wish list so far …
Browse files Browse the repository at this point in the history
…and link to go to the Browse List to add some
  • Loading branch information
Erin Doyle committed Aug 11, 2018
1 parent 6426813 commit ce3c86c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wishlist/MovieEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MovieEditor extends Component {
<div className="modal-body">
<div className="form-group">
<label>Notes:</label>
<textarea class="form-control" value={notes} onChange={this.handleChangeNotes} />
<textarea className="form-control" value={notes} onChange={this.handleChangeNotes} />
</div>
</div>
<div className="modal-footer">
Expand Down
2 changes: 1 addition & 1 deletion src/wishlist/MovieWishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MovieWishlist extends Component {
</li>
</ul>

{wishlist.length
{Object.keys(wishlist).length
? <div>
<WishList
movieList={wishlist}
Expand Down
2 changes: 1 addition & 1 deletion src/wishlist/getWishlistActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getMovieActions = (showEditor, setAsWatched, setAsUnwatched, handleRemove)
const removeClickHandler = () => handleRemove(movieId);

return (
<div class="btn-group">
<div className="btn-group">
<button className="btn btn-secondary" onClick={watchClickHandler}>{watchButtonText}</button>
<button className="btn btn-secondary" onClick={editClickHandler}>Edit</button>
<button className="btn btn-secondary" onClick={removeClickHandler}>Remove</button>
Expand Down

0 comments on commit ce3c86c

Please sign in to comment.