Skip to content

Commit f1f3d01

Browse files
committed
fix linting issues
1 parent 38b466f commit f1f3d01

2 files changed

Lines changed: 30 additions & 26 deletions

File tree

src/column/edit.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ const BootstrapColumnEdit = ( {
320320
) }
321321
onChange={ ( newContentVerticalAlignment ) =>
322322
setAttributes( {
323-
contentVerticalAlignment: newContentVerticalAlignment,
323+
contentVerticalAlignment:
324+
newContentVerticalAlignment,
324325
} )
325326
}
326327
alignmentControls={ contentVerticalAlignmentControls }

src/row/edit.js

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -391,32 +391,35 @@ const BootstrapRowEdit = ( {
391391
title={ __( 'Change layout', 'wp-bootstrap-blocks' ) }
392392
>
393393
<ul className="wp-bootstrap-blocks-template-selector-list">
394-
{ templates.map( (
395-
template,
396-
index // eslint-disable-line no-shadow
397-
) => (
398-
<li
399-
className="wp-bootstrap-blocks-template-selector-button"
400-
key={ index }
401-
>
402-
<IconButton
403-
label={ template.title }
404-
icon={ template.icon }
405-
onClick={ () => {
406-
onTemplateChange( template.name );
407-
} }
408-
className={
409-
selectedTemplateName === template.name
410-
? 'is-active'
411-
: null
412-
}
394+
{ templates.map(
395+
(
396+
template,
397+
index // eslint-disable-line no-shadow
398+
) => (
399+
<li
400+
className="wp-bootstrap-blocks-template-selector-button"
401+
key={ index }
413402
>
414-
<div className="wp-bootstrap-blocks-template-selector-button-label">
415-
{ template.title }
416-
</div>
417-
</IconButton>
418-
</li>
419-
) ) }
403+
<IconButton
404+
label={ template.title }
405+
icon={ template.icon }
406+
onClick={ () => {
407+
onTemplateChange( template.name );
408+
} }
409+
className={
410+
selectedTemplateName ===
411+
template.name
412+
? 'is-active'
413+
: null
414+
}
415+
>
416+
<div className="wp-bootstrap-blocks-template-selector-button-label">
417+
{ template.title }
418+
</div>
419+
</IconButton>
420+
</li>
421+
)
422+
) }
420423
</ul>
421424
</PanelBody>
422425
<PanelBody title={ __( 'Row options', 'wp-bootstrap-blocks' ) }>

0 commit comments

Comments
 (0)