Permalink
Browse files

Stage 2: connections count

  • Loading branch information...
juhofriman committed Jul 19, 2016
1 parent 3cad440 commit dbeae053ba66d40011d3c9e56027c5a994cf49d7
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/PhoneBook.jsx
View
@@ -36,6 +36,9 @@ module.exports = React.createClass({
contact.firstname.indexOf(this.state.nameFilter) > -1;
}.bind(this));
},
+ getContactCount: function() {
+ return this.state.contacts.length;
+ },
render: function() {
return (
<div>
@@ -45,7 +48,7 @@ module.exports = React.createClass({
<div className="all-50">
<FilterInput value={this.state.nameFilter}/>
<ContactListing contacts={this.getContacts()}/>
- <ContactCounts contactCount="1000" />
+ <ContactCounts contactCount={this.getContactCount()} />
</div>
<div className="all-50">
<div className="ink-form">

0 comments on commit dbeae05

Please sign in to comment.