aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/common/Button.jsx
diff options
context:
space:
mode:
authorClemens <cle1000.cb@gmail.com>2016-07-13 18:16:31 +0200
committerClemens <cle1000.cb@gmail.com>2016-07-13 18:16:31 +0200
commitf84098554a3d50ec02255603bb0a145b3aa0c6b2 (patch)
treee778b465346d9c96c27cd7663c2a95451710c262 /web/src/js/components/common/Button.jsx
parent544b1e32389d28df4a40013ea6886f1f9d61e37d (diff)
downloadmitmproxy-f84098554a3d50ec02255603bb0a145b3aa0c6b2.tar.gz
mitmproxy-f84098554a3d50ec02255603bb0a145b3aa0c6b2.tar.bz2
mitmproxy-f84098554a3d50ec02255603bb0a145b3aa0c6b2.zip
added code editor and file upload
Diffstat (limited to 'web/src/js/components/common/Button.jsx')
-rw-r--r--web/src/js/components/common/Button.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/src/js/components/common/Button.jsx b/web/src/js/components/common/Button.jsx
index 574288df..221c6ace 100644
--- a/web/src/js/components/common/Button.jsx
+++ b/web/src/js/components/common/Button.jsx
@@ -10,8 +10,10 @@ export default function Button({ onClick, text, icon, disabled }) {
<div className={"btn btn-default"}
onClick={onClick}
disabled={disabled}>
- <i className={"fa fa-fw " + icon}/>
- &nbsp;
+ <span hidden={!icon}>
+ <i className={"fa fa-fw " + icon}/>
+ &nbsp;
+ </span>
{text}
</div>
)