From 177464e06f48511c963d968809426cb544892bd3 Mon Sep 17 00:00:00 2001 From: Graeme Date: Thu, 5 Apr 2018 21:07:07 -0700 Subject: [PATCH] Fix the angry linter --- src/core/components/highlight-code.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/components/highlight-code.jsx b/src/core/components/highlight-code.jsx index ab971ea5..1890c3b7 100644 --- a/src/core/components/highlight-code.jsx +++ b/src/core/components/highlight-code.jsx @@ -29,7 +29,7 @@ export default class HighlightCode extends Component { downloadJSON = () => { let content = this.props.value let fileName = "response" - let fileToSave = new Blob([content], {type: 'text/plain'}) + let fileToSave = new Blob([content], {type: "text/plain"}) saveAs(fileToSave, fileName) } @@ -40,16 +40,16 @@ export default class HighlightCode extends Component { return (
-
+
{"Download"}
+          className={className + " microlight" + (contentsHidden ? " flat-bottom" : "")}>
           { contentsHidden ? value.substring(0, 600) : value }
         
{ value.length > 600 && -
+
{ contentsHidden ? "See full contents" : "Collapse contents"}
}