nci/static/js/app/components/projects/item.js
2015-05-10 00:36:17 +03:00

20 lines
419 B
JavaScript

'use strict';
define([
'react', 'app/actions/project', 'templates/app/components/projects/item',
], function(React, ProjectActions, template) {
var Component = React.createClass({
onProjectSelect: function(projectName) {
ProjectActions.run(projectName)
},
render: function() {
return template({
item: this.props.item,
onProjectSelect: this.onProjectSelect
});
}
});
return Component;
});