|
@@ -24,7 +24,8 @@ Task = React.createClass({
|
|
|
render() {
|
|
|
// Give tasks a different clasSName when they are checked off,
|
|
|
// so that we can style them nicely in CSS.
|
|
|
- const taskClassName = this.props.task.checked ? 'checked' : '';
|
|
|
+ const taskClassName = (this.props.task.checked ? 'checked' : '') + " " +
|
|
|
+ (this.props.task.private ? "private" : "");
|
|
|
|
|
|
let result = (
|
|
|
<li className={taskClassName}>
|