Skip to content

Commit

Permalink
refactor(RmMovies): use object expression on 'mapStateToProps'
Browse files Browse the repository at this point in the history
  • Loading branch information
aneurysmjs committed Dec 30, 2017
1 parent 41e1a09 commit e5f6bba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/containers/RmMovies/RmMovies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ RmMovies.propTypes = {
}))
};

const mapStateToProps = (state) => {
return {
searchTerm: state.searchTerm
};
};
const mapStateToProps = (state) => ({
searchTerm: state.searchTerm
});

export default connect(mapStateToProps)(RmMovies);

0 comments on commit e5f6bba

Please sign in to comment.