Skip to content

Commit 0da90f2

Browse files
wrap li content in div
1 parent c5c7722 commit 0da90f2

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

ep17-edit-todo/app/components/DisplayItem.jsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@ export default class DisplayItem extends React.Component {
55
render () {
66
var todo = this.props.todo;
77

8-
return <li className={ todo.done ? 'done' : '' }>
9-
<input
10-
checked={todo.done}
11-
onChange={this.props.handleDone.bind(null, todo.id)}
12-
type="checkbox"
13-
style={{ fontSize: 'x-large' }} />
8+
return <div>
9+
<li className={ todo.done ? 'done' : '' }>
10+
<input
11+
checked={todo.done}
12+
onChange={this.props.handleDone.bind(null, todo.id)}
13+
type="checkbox"
14+
style={{ fontSize: 'x-large' }} />
1415

15-
<label>
16-
{ todo.title }
17-
</label>
16+
<label>
17+
{ todo.title }
18+
</label>
1819

19-
<a href='#'
20-
className="destroy"
21-
onClick={ this.props.handleDelete.bind(null, todo.id) }>
22-
[x]
23-
</a>
24-
</li>;
20+
<a href='#'
21+
className="destroy"
22+
onClick={ this.props.handleDelete.bind(null, todo.id) }>
23+
[x]
24+
</a>
25+
</li>
26+
</div>
2527
}
2628

2729
}

0 commit comments

Comments
 (0)