-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Route and link the shelfs and search
- Loading branch information
Diana
committed
Feb 16, 2020
1 parent
9fe691b
commit 8ee36c3
Showing
7 changed files
with
226 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
import ShowBooks from './ShowBooks.js' | ||
|
||
const Shelfs = (props) => { | ||
|
||
const {currentlyReading, wantToRead, read, moveBook} = props | ||
|
||
return ( | ||
<div> | ||
<div className="list-books-title"> | ||
<h1>MyReads</h1> | ||
</div> | ||
<div className="list-books-content"> | ||
<div> | ||
<div className="bookshelf"> | ||
<h2 className="bookshelf-title">Currently Reading</h2> | ||
<ShowBooks books={currentlyReading} moveBook={moveBook}/> | ||
</div> | ||
<div className="bookshelf"> | ||
<h2 className="bookshelf-title">Want to Read</h2> | ||
<ShowBooks books={wantToRead} moveBook={moveBook}/> | ||
</div> | ||
<div className="bookshelf"> | ||
<h2 className="bookshelf-title">Read</h2> | ||
<ShowBooks books={read} moveBook={moveBook}/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Shelfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import { BrowserRouter } from 'react-router-dom' | ||
import App from './App' | ||
import './index.css' | ||
|
||
ReactDOM.render(<App />, document.getElementById('root')) | ||
ReactDOM.render( | ||
<BrowserRouter><App /></BrowserRouter>, | ||
document.getElementById('root') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters