equal
deleted
inserted
replaced
86 NotesList.propTypes = { |
86 NotesList.propTypes = { |
87 notes: PropTypes.instanceOf(Immutable.List).isRequired |
87 notes: PropTypes.instanceOf(Immutable.List).isRequired |
88 }; |
88 }; |
89 |
89 |
90 function mapStateToProps(state, props) { |
90 function mapStateToProps(state, props) { |
91 return props; |
91 return { |
|
92 ...props, |
|
93 notes : props.notes.filter(note => !note.deleted) |
|
94 }; |
92 } |
95 } |
93 |
96 |
94 function mapDispatchToProps(dispatch) { |
97 function mapDispatchToProps(dispatch) { |
95 return { |
98 return { |
96 notesActions: bindActionCreators(notesActions, dispatch), |
99 notesActions: bindActionCreators(notesActions, dispatch), |