forked from Ada-C15/front-end-inspiration-board
-
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.
Added Board component and select/list all boards functionality
- Loading branch information
Showing
3 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
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,4 @@ | ||
/* for testing only: */ | ||
.board { | ||
border: dashed 2px blue; | ||
} |
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,13 +1,14 @@ | ||
import './Board.css'; | ||
import PropTypes from 'prop-types'; | ||
|
||
|
||
const Board = (props) => { | ||
return ( | ||
<section> | ||
{/* props we need: board & onBoardSelect | ||
onClick too*/} | ||
</section> | ||
<div className="board" | ||
onClick={() => props.onBoardSelect(props.board)} | ||
> | ||
{props.board.title} | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default Board; |