reuse constant

This commit is contained in:
Daniel Waxweiler 2022-06-19 09:30:36 +02:00
parent f76653f05c
commit 5af00fc85e
1 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ export default ({ attributes, setAttributes }) => {
<PanelBody title={__('Events List Settings', '<wordpress-name>')}> <PanelBody title={__('Events List Settings', '<wordpress-name>')}>
<label <label
className="components-base-control__label" className="components-base-control__label"
htmlFor="<wordpress-name>_events-count" htmlFor={NAME + '_events-count'}
> >
{__('Number of events to show', '<wordpress-name>')} {__('Number of events to show', '<wordpress-name>')}
</label> </label>
@ -54,11 +54,11 @@ export default ({ attributes, setAttributes }) => {
type="number" type="number"
value={attributes.eventsCount} value={attributes.eventsCount}
onChange={updateEventsCount} onChange={updateEventsCount}
id="<wordpress-name>_events-count" id={NAME + '_events-count'}
/> />
<label <label
className="components-base-control__label" className="components-base-control__label"
htmlFor="<wordpress-name>_group-name" htmlFor={NAME + '_group-name'}
> >
{__('Group name (optional)', '<wordpress-name>')} {__('Group name (optional)', '<wordpress-name>')}
</label> </label>
@ -67,7 +67,7 @@ export default ({ attributes, setAttributes }) => {
type="text" type="text"
value={attributes.groupName} value={attributes.groupName}
onChange={updateGroupName} onChange={updateGroupName}
id="<wordpress-name>_group-name" id={NAME + '_group-name'}
/> />
</PanelBody> </PanelBody>
</InspectorControls>, </InspectorControls>,