No Message

This commit is contained in:
Ken Jannette
2018-04-19 12:20:00 -04:00
parent 9fec254266
commit 52a4ba9398
2 changed files with 1 additions and 3 deletions

View File

@@ -24,8 +24,6 @@ class BooksApp extends React.Component {
onSelectChange = (e) => {
const id = e.target.name
const newShelf = e.target.value
// console.log(id, newShelf)
let changeShelf = this.state.books.filter((book) => { return book.id === id})
const books = this.state.books.slice(); // Create local copy to change.
books.forEach((book) => {
if (book.id === id) {

View File

@@ -92,7 +92,7 @@ class Bookshelf extends Component {
<div className="book-top">
<div className="book-cover" style={{ width: 128, height: 193, backgroundImage: `url("${ book.imageLinks.thumbnail }")` }}></div>
<div className="book-shelf-changer">
<select name={book.id} onChange={this.onSelect}>
<select name={book.id} onChange={onSelect}>
<option value="none" disabled>Move to...</option>
<option value="currentlyReading">Currently Reading</option>
<option value="wantToRead">Want to Read</option>