diff options
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 ( |