Skip to content

Commit

Permalink
move footer to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajsingh0101 committed Aug 28, 2015
1 parent 7cf5dcd commit 481c3cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ep16-new-css/app/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ export default class App extends React.Component {
<button> Submit </button>
</form>

<DisplayList
handleDone={this.handleDone.bind(this)}
handleDelete={this.handleDelete.bind(this)}
todos={this.state.todos} />

<footer>
All: ({ this.state.todos.length }) |
Completed: ({ this.state.todos.filter((todo) => { return todo.done }).length }) |
Pending: ({ this.state.todos.filter((todo) => { return !todo.done }).length }) |
<a href='#' onClick={this.handleClearCompleted.bind(this)}>Clear Completed</a>
</footer>

<DisplayList
handleDone={this.handleDone.bind(this)}
handleDelete={this.handleDelete.bind(this)}
todos={this.state.todos} />
</div>;
}
}

0 comments on commit 481c3cb

Please sign in to comment.