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

Fix ComponentId camelCase #777

Merged
merged 1 commit into from
Jul 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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