Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix ComponentId camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu authored and mikejolley committed Jul 30, 2019
1 parent a12ba2a commit 80d10be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/js/blocks/product-categories/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -81,7 +81,7 @@ class ProductCategoriesBlock extends Component {
}
);

const selectId = `prod-categories-${ ComponentId }`;
const selectId = `prod-categories-${ componentId }`;

return (
<Fragment>
Expand Down
4 changes: 2 additions & 2 deletions assets/js/utils/with-component-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const withComponentId = ( OriginalComponent ) => {
}

render() {
const ComponentId = this.generateUniqueID();
const componentId = this.generateUniqueID();

return <OriginalComponent
{ ...this.props }
ComponentId={ ComponentId }
componentId={ componentId }
/>;
}
};
Expand Down

0 comments on commit 80d10be

Please sign in to comment.