Created
March 27, 2016 11:01
-
-
Save dai-shi/d124672f443d94d93689 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index 75714e5..78e5548 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -51,7 +51,7 @@ class App extends Component { | |
| return ( | |
| <div className="container"> | |
| <header> | |
| - <h1>Todo List</h1> | |
| + <h1>Todo List ({this.props.incompleteCount})</h1> | |
| <label className="hide-completed"> | |
| <input | |
| @@ -82,6 +82,7 @@ class App extends Component { | |
| App.propTypes = { | |
| tasks: PropTypes.array.isRequired, | |
| + incompleteCount: PropTypes.number.isRequired, | |
| }; | |
| export default createContainer(() => { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment