diff options
author | Clemens <cle1000.cb@gmail.com> | 2016-08-03 12:08:10 +0200 |
---|---|---|
committer | Clemens <cle1000.cb@gmail.com> | 2016-08-03 12:08:10 +0200 |
commit | 34fe391afbe18f89d774137f82620024f697ab6a (patch) | |
tree | 0a1bcd4b0bccd1e7e51166982f8b4332da94a384 /web/src/js/components/common | |
parent | bcc496527ebf5faf94025ec7c28992a1ac368140 (diff) | |
download | mitmproxy-34fe391afbe18f89d774137f82620024f697ab6a.tar.gz mitmproxy-34fe391afbe18f89d774137f82620024f697ab6a.tar.bz2 mitmproxy-34fe391afbe18f89d774137f82620024f697ab6a.zip |
add view all button, add dropdown for contentviews
Diffstat (limited to 'web/src/js/components/common')
-rw-r--r-- | web/src/js/components/common/Button.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/src/js/components/common/Button.jsx b/web/src/js/components/common/Button.jsx index cd01af22..0ac80782 100644 --- a/web/src/js/components/common/Button.jsx +++ b/web/src/js/components/common/Button.jsx @@ -1,4 +1,5 @@ import React, { PropTypes } from 'react' +import classnames from 'classnames' Button.propTypes = { onClick: PropTypes.func.isRequired, @@ -6,9 +7,9 @@ Button.propTypes = { icon: PropTypes.string } -export default function Button({ onClick, text, icon, disabled }) { +export default function Button({ onClick, text, icon, disabled, isXs }) { return ( - <div className={"btn btn-default"} + <div className={classnames('btn btn-default', { 'btn-xs': isXs})} onClick={onClick} disabled={disabled}> {icon && (<i className={"fa fa-fw " + icon}/> )} |