diff --git a/app/components/AddTodo.jsx b/app/components/AddTodo.jsx index 53a4121..bd5a65d 100644 --- a/app/components/AddTodo.jsx +++ b/app/components/AddTodo.jsx @@ -14,7 +14,7 @@ var AddTodo = React.createClass({ render: function() { var {id, text, time, complete} = this.props; return ( -
+
diff --git a/app/components/Todo.jsx b/app/components/Todo.jsx index a4f44f5..49ee595 100644 --- a/app/components/Todo.jsx +++ b/app/components/Todo.jsx @@ -4,6 +4,7 @@ var moment = require('moment'); var Todo = React.createClass({ render: function() { var {id, text, createdAt, completedAt, complete} = this.props; + var todoClassName = (complete) ? 'todo todo-complete' : 'todo'; var renderDate = () => { var message = 'Created: '; @@ -16,12 +17,14 @@ var Todo = React.createClass({ } return ( -
{this.props.onToggle(this.props.id);}}> -