From 8d7891a25bbf94d5c678b71379519453ed846e55 Mon Sep 17 00:00:00 2001
From: Renard
Date: Mon, 23 Sep 2019 22:14:00 -0300
Subject: Lista de hilos
---
src/Board.js | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
(limited to 'src/Board.js')
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 {
{currentBoard.name}
+
+
+ {currentBoard.name}
+ /{currentBoard.dir}/
+
+ Lista de hilos
+
+
{threadList.map(thread => (