Edited bookshelf and searchpage
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Route, BrowserRouter } from 'react-router-dom'
|
import { Route } from 'react-router-dom'
|
||||||
// import * as BooksAPI from './BooksAPI'
|
// import * as BooksAPI from './BooksAPI'
|
||||||
import Bookshelf from './Bookshelf'
|
import Bookshelf from './Bookshelf'
|
||||||
import SearchPage from './SearchPage'
|
import SearchPage from './SearchPage'
|
||||||
@@ -24,13 +24,14 @@ class BooksApp extends React.Component {
|
|||||||
<Bookshelf />
|
<Bookshelf />
|
||||||
)}/>
|
)}/>
|
||||||
|
|
||||||
<Route exact path='/search' render={() => (
|
<Route path='/search' render={() => (
|
||||||
<SearchPage />
|
<SearchPage />
|
||||||
)}/>
|
)}/>
|
||||||
|
/*
|
||||||
<div className="open-search">
|
<div className="open-search">
|
||||||
<a onClick={() => this.setState({ showSearchPage: true })}>Add a book</a>
|
<a onClick={() => this.setState({ showSearchPage: true })}>Add a book</a>
|
||||||
</div>
|
</div>
|
||||||
|
*/
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user