Skip to content

Commit

Permalink
proper usage of let and const in center.js (jestjs#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhannanali authored and cpojer committed Apr 11, 2017
1 parent 90e2507 commit 965c815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/core/center.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const assign = require('object-assign');

const center = React.createClass({
render() {
let {style, ...props} = this.props;
style = assign({}, style, {textAlign: 'center'});
const {style, ...props} = this.props;
const newStyle = assign({}, style, {textAlign: 'center'});

return (
<div {...props} style={style}>{this.props.children}</div>
<div {...props} style={newStyle}>{this.props.children}</div>
);
},
});
Expand Down

0 comments on commit 965c815

Please sign in to comment.