Setup CI tests (#100)
* use @xarc/xrun to streamline tasks in an imperative manner * add lint-staged/husky for git hook tasks * run prettier across all files * fixing tests * add ci test workflow * add a ci workflow * remove precommit in favor of husky * add .prettierrc.js * reformat with prettier
This commit is contained in:
@@ -3,13 +3,9 @@ var reactCreateClass = require('create-react-class');
|
||||
var classNames = require('classnames');
|
||||
|
||||
var Alert = reactCreateClass({
|
||||
|
||||
render: function() {
|
||||
return(
|
||||
<div className={classNames('alert', 'alert-' + this.props.type)}>{this.props.text}</div>
|
||||
);
|
||||
}
|
||||
|
||||
render: function () {
|
||||
return <div className={classNames('alert', 'alert-' + this.props.type)}>{this.props.text}</div>;
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = Alert;
|
||||
|
||||
Reference in New Issue
Block a user