mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
* QuerySidePanel component * Adds all osquery table names to ace editor mode * kolide theme for strings * Detect OS from browser * Show utility and specs availability as 'All Platforms' * Show column description as alt text
34 lines
687 B
JavaScript
34 lines
687 B
JavaScript
import React, { Component, PropTypes } from 'react';
|
|
import radium from 'radium';
|
|
import componentStyles from './styles';
|
|
|
|
class Button extends Component {
|
|
static propTypes = {
|
|
onClick: PropTypes.func,
|
|
style: PropTypes.object,
|
|
text: PropTypes.string,
|
|
type: PropTypes.string,
|
|
variant: PropTypes.string,
|
|
};
|
|
|
|
static defaultProps = {
|
|
style: {},
|
|
variant: 'default',
|
|
};
|
|
|
|
render () {
|
|
const { onClick, style, text, type, variant } = this.props;
|
|
|
|
return (
|
|
<button
|
|
onClick={onClick}
|
|
style={[componentStyles[variant], style]}
|
|
type={type}
|
|
>
|
|
{text}
|
|
</button>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default radium(Button);
|