Skip to content

Commit

Permalink
Chrome: Remove useless comment and consolidate react-redux callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 24, 2017
1 parent 35b57c2 commit 923570a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions editor/sidebar/post-excerpt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ function PostExcerpt( { excerpt, onUpdateExcerpt } ) {
</a>
</PanelBody>
);
/* eslint-enable jsx-a11y/label-has-for */
}

export default connect(
( state ) => ( {
excerpt: getEditedPostExcerpt( state ),
} ),
( state ) => {
return {
excerpt: getEditedPostExcerpt( state ),
};
},
( dispatch ) => {
return {
onUpdateExcerpt( excerpt ) {
Expand Down

0 comments on commit 923570a

Please sign in to comment.