mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-12 02:45:12 +00:00
20 lines
418 B
JavaScript
20 lines
418 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;
|
|
});
|