| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 2× 2× 2× 2× 2× 4× | var CellStatusMixin, React, STATUS;
React = require('react');
CellStatusMixin = require('./cell-status-mixin');
STATUS = {
'completed': 'Complete',
'in_progress': 'In progress',
'not_started': 'Not started'
};
module.exports = React.createClass({
displayName: 'ReadingCell',
mixins: [CellStatusMixin],
render: function() {
return this.renderLink({
message: STATUS[this.props.task.status]
});
}
});
|