aboutsummaryrefslogtreecommitdiff
path: root/src/Thread.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-25 15:33:33 -0300
committerLibravatar Renard 2019-09-25 15:33:33 -0300
commit2e496411a387493e87087d90deb4ed5efe3c3417 (patch)
tree28f4043d37275abc82a78b739e2ef35afdfffd87 /src/Thread.js
parent30d3bf92fe11bcdfeeaf070732f28d9cd5be799a (diff)
downloadbai-client-2e496411a387493e87087d90deb4ed5efe3c3417.tar.gz
bai-client-2e496411a387493e87087d90deb4ed5efe3c3417.tar.xz
bai-client-2e496411a387493e87087d90deb4ed5efe3c3417.zip
Variable destructuring ✨
Diffstat (limited to 'src/Thread.js')
-rw-r--r--src/Thread.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Thread.js b/src/Thread.js
index 5c42aaa..c4d4cbe 100644
--- a/src/Thread.js
+++ b/src/Thread.js
@@ -101,7 +101,7 @@ class Thread extends Component {
render() {
const { isLoading, error } = this.state;
- const { nightMode } = this.props;
+ const { boardList, dir, nightMode } = this.props;
if (isLoading) {
return (
@@ -131,8 +131,8 @@ class Thread extends Component {
id
} = this.state.thread;
- const currentBoard = this.props.boardList.find(board => {
- return board.dir === this.props.dir;
+ const currentBoard = boardList.find(board => {
+ return board.dir === dir;
});
document.title = subject + " - " + currentBoard.name + "@B.a.I";
@@ -185,7 +185,7 @@ class Thread extends Component {
/>
<a
- href={`https://bienvenidoainternet.org/cgi/api/thread?dir=${this.props.dir}&id=${this.props.id}`}
+ href={`https://bienvenidoainternet.org/cgi/api/thread?dir=${dir}&id=${this.props.id}`}
>
API Link
</a>