No Message
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user