change var to const

This commit is contained in:
Eduard Heimbuch
2019-06-25 12:54:20 +02:00
parent 35d8ac5075
commit 302b3809e9
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class ButtonAddons extends React.Component<Props> {
render() {
const { className, children } = this.props;
var childWrapper = [];
const childWrapper = [];
React.Children.forEach(children, child => {
if (child) {
childWrapper.push(<p className="control">{child}</p>);

View File

@@ -11,7 +11,7 @@ class ButtonGroup extends React.Component<Props> {
render() {
const { className, children } = this.props;
var childWrapper = [];
const childWrapper = [];
React.Children.forEach(children, child => {
if (child) {
childWrapper.push(<p className="control">{child}</p>);