diff options
Diffstat (limited to 'web/src/js/components/common.js')
-rw-r--r-- | web/src/js/components/common.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/src/js/components/common.js b/web/src/js/components/common.js index 3496f1de..1497e15d 100644 --- a/web/src/js/components/common.js +++ b/web/src/js/components/common.js @@ -121,6 +121,18 @@ ToggleButton.propTypes = { text: React.PropTypes.string.isRequired }; +export const Button = ({onClick, text, icon}) => + <div className={"btn btn-default"} onClick={onClick}> + <i className={"fa fa-fw " + icon}/> + + {text} + </div>; + +Button.propTypes = { + onClick: React.PropTypes.func.isRequired, + text: React.PropTypes.string.isRequired +}; + export class ToggleInputButton extends React.Component { constructor(props) { super(props); |