From 5756921f22c0f7ac6133df21973bf0b15d56cc61 Mon Sep 17 00:00:00 2001 From: Renard Date: Thu, 12 Sep 2019 18:00:03 -0300 Subject: Linting --- src/BBSThread.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/BBSThread.js') 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 ( -- cgit v1.2.1-18-gbd029