Files
browser-wakatime/assets/js/components/Alert.jsx
Nathaniel van Diepen 6b1672d474 Force more line endings
2017-04-18 12:16:12 -06:00

20 lines
415 B
JavaScript

var React = require('react');
var classNames = require('classnames');
var Alert = React.createClass({
propTypes: {
type: React.PropTypes.string.isRequired,
text: React.PropTypes.string.isRequired
},
render: function() {
return(
<div className={classNames('alert', 'alert-' + this.props.type)}>{this.props.text}</div>
);
}
});
module.exports = Alert;