diff options
author | Renard | 2019-09-23 22:14:00 -0300 |
---|---|---|
committer | Renard | 2019-09-23 22:14:00 -0300 |
commit | 8d7891a25bbf94d5c678b71379519453ed846e55 (patch) | |
tree | 0b3ea8ca418877ce9e491db9b00ff5b8ecab2ed5 /src/Board.js | |
parent | 9e42ccb82dcab1c86f048e6bbc8df11f4759169b (diff) | |
download | bai-client-8d7891a25bbf94d5c678b71379519453ed846e55.tar.gz bai-client-8d7891a25bbf94d5c678b71379519453ed846e55.tar.xz bai-client-8d7891a25bbf94d5c678b71379519453ed846e55.zip |
Lista de hilos
Diffstat (limited to 'src/Board.js')
-rw-r--r-- | src/Board.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Board.js b/src/Board.js index 41727bc..b15f050 100644 --- a/src/Board.js +++ b/src/Board.js @@ -35,7 +35,12 @@ class Board extends Component { if (resource["state"] === "error") { this.setState({ error: resource }); } - this.setState({ isLoaded: true, threadList: resource["threads"] }); + this.setState( + { isLoaded: true, threadList: resource["threads"] }, + () => { + window.scrollTo(0, 0); + } + ); }); window.scrollTo(0, 0); window.addEventListener("scroll", this.handleScroll); @@ -127,6 +132,14 @@ class Board extends Component { <Breadcrumb.Divider icon="right chevron" /> <Breadcrumb.Section link>{currentBoard.name}</Breadcrumb.Section> </Breadcrumb> + <Segment basic> + <Header as="h1"> + {currentBoard.name} + <Header.Subheader>/{currentBoard.dir}/</Header.Subheader> + </Header> + <Link to={`/list/${currentBoard.dir}`}>Lista de hilos</Link> + </Segment> + {threadList.map(thread => ( <Segment.Group key={"seg_" + thread.timestamp + thread.id}> <Header as="h3" attached inverted={nightMode}> |