From e7745c7fa1d368bfaa3c3952d0ffbc27428f23e9 Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 16 Sep 2019 12:08:48 -0300 Subject: Breadcrumb! --- src/Board.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/Board.js') diff --git a/src/Board.js b/src/Board.js index 34c7967..e5997bc 100644 --- a/src/Board.js +++ b/src/Board.js @@ -6,7 +6,8 @@ import { Header, Image, Comment, - Divider + Divider, + Breadcrumb } from "semantic-ui-react"; import { Link } from "@reach/router"; import Moment from "react-moment"; @@ -76,8 +77,19 @@ class Board extends Component { ); } + const currentBoard = this.props.boardList.find(board => { + return board.dir === this.props.dir; + }); + return ( -
+ + + + Home + + + {currentBoard.name} + {threadList.map(thread => (
@@ -109,7 +121,7 @@ class Board extends Component { ))} -
+ ); } } -- cgit v1.2.1-18-gbd029