aboutsummaryrefslogtreecommitdiff
path: root/src/Board.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-12 18:00:03 -0300
committerLibravatar Renard 2019-09-12 18:00:03 -0300
commit5756921f22c0f7ac6133df21973bf0b15d56cc61 (patch)
tree22cbb93e3d380d97efa300f261f8eab350e4bba7 /src/Board.js
parent04eb1ecac5e6c817a45f23a3f7d55d48c40f0d0f (diff)
downloadbai-client-5756921f22c0f7ac6133df21973bf0b15d56cc61.tar.gz
bai-client-5756921f22c0f7ac6133df21973bf0b15d56cc61.tar.xz
bai-client-5756921f22c0f7ac6133df21973bf0b15d56cc61.zip
Linting
Diffstat (limited to 'src/Board.js')
-rw-r--r--src/Board.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Board.js b/src/Board.js
index beb8a74..bec11a3 100644
--- a/src/Board.js
+++ b/src/Board.js
@@ -1,9 +1,8 @@
import React, { Component } from "react";
-import { Loader, Message, Segment, Header, Icon, Image } from "semantic-ui-react";
+import { Loader, Message, Segment, Header } from "semantic-ui-react";
import { Link } from "@reach/router";
import Moment from "react-moment";
import "moment/locale/es";
-import Post from "./Post";
class Board extends Component {
constructor() {
super();
@@ -20,7 +19,7 @@ class Board extends Component {
return response.json();
})
.then((resource) => {
- if (resource["state"] == "error") {
+ if (resource["state"] === "error") {
this.setState({ error: resource });
}
this.setState({ isLoaded: true, threadList: resource["threads"] })