Skip to content

Commit

Permalink
Merge pull request #26 from AngelaOh/disable_movie_library_button
Browse files Browse the repository at this point in the history
added disabled button for movie selected
  • Loading branch information
qqdipps authored Jun 28, 2019
2 parents 4157c08 + 9dc5049 commit 1551251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/component/Movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Movie extends React.Component {

inLibraryMessage = <Button variant='danger' disabled> In Movie Library</Button>;

selectedMovieMessage = <div className="btn btn-danger">Movie Selected</div>;
selectedMovieMessage = <Button variant="danger" disabled>Movie Selected</Button>;

selectMovieButton = (
<button
Expand Down
2 changes: 1 addition & 1 deletion src/component/MovieLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MovieLibrary extends React.Component {
return movie;
});
movieList = movieList.sort((a, b) => {
return a.title.localeCompare(b.title);
// return a.title.localeCompare(b.title);
});

this.setState({
Expand Down

0 comments on commit 1551251

Please sign in to comment.