Fix ComponentId camelCase

This commit is contained in:
Albert Juhé Lluveras 2019-07-30 10:03:59 +02:00 committed by Mike Jolley
parent 2875dee9ae
commit c1c4d235b1
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ class ProductCategoriesBlock extends Component {
}
render() {
const { attributes, categories, ComponentId } = this.props;
const { attributes, categories, componentId } = this.props;
const { className, isDropdown } = attributes;
const classes = classnames(
'wc-block-product-categories',
@ -81,7 +81,7 @@ class ProductCategoriesBlock extends Component {
}
);
const selectId = `prod-categories-${ ComponentId }`;
const selectId = `prod-categories-${ componentId }`;
return (
<Fragment>

View File

@ -22,11 +22,11 @@ const withComponentId = ( OriginalComponent ) => {
}
render() {
const ComponentId = this.generateUniqueID();
const componentId = this.generateUniqueID();
return <OriginalComponent
{ ...this.props }
ComponentId={ ComponentId }
componentId={ componentId }
/>;
}
};