diff options
author | Renard | 2019-09-12 18:00:03 -0300 |
---|---|---|
committer | Renard | 2019-09-12 18:00:03 -0300 |
commit | 5756921f22c0f7ac6133df21973bf0b15d56cc61 (patch) | |
tree | 22cbb93e3d380d97efa300f261f8eab350e4bba7 /src/BBSThread.js | |
parent | 04eb1ecac5e6c817a45f23a3f7d55d48c40f0d0f (diff) | |
download | bai-client-5756921f22c0f7ac6133df21973bf0b15d56cc61.tar.gz bai-client-5756921f22c0f7ac6133df21973bf0b15d56cc61.tar.xz bai-client-5756921f22c0f7ac6133df21973bf0b15d56cc61.zip |
Linting
Diffstat (limited to 'src/BBSThread.js')
-rw-r--r-- | src/BBSThread.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/BBSThread.js b/src/BBSThread.js index 747682b..025f258 100644 --- a/src/BBSThread.js +++ b/src/BBSThread.js @@ -1,5 +1,5 @@ import React, { Component } from "react"; -import { Header, Icon, Loader, Message, Segment, Image, Label } from "semantic-ui-react"; +import { Header, Icon, Loader, Message } from "semantic-ui-react"; import Moment from "react-moment"; import "moment/locale/es"; import Post from "./Post"; @@ -27,7 +27,7 @@ class BBSThread extends Component { fetch(apiURl) .then((response) => { return response.json() }) .then((resource => { - if (resource["state"] == "error") { + if (resource["state"] === "error") { console.log("API Error:" + resource["message"]); this.setState({ error: resource }); } @@ -37,7 +37,6 @@ class BBSThread extends Component { } render() { const { isLoading, error } = this.state; - const filesize = require('filesize'); if (isLoading) { return ( |