Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Dec 5, 2024
1 parent ded412d commit 3e209b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const eslintConfig = {
Masonry: 'readable',
IntersectionObserver: 'readable',
getComputedStyle: 'readable',
ScrollMagic: 'readable',
},
rules: {
'@wordpress/i18n-text-domain': [
Expand Down
11 changes: 8 additions & 3 deletions src/blocks/table/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,11 @@ export function Edit(props) {
}}
>
<h3 style={{ margin: '0 0 8px' }}>
{sprintf(__('Column %d', 'kadence-blocks'), index + 1)}
{sprintf(
// Translators: %d is the column number.
__('Column %d', 'kadence-blocks'),
index + 1
)}
</h3>

<ToggleControl
Expand Down Expand Up @@ -572,7 +576,7 @@ export function Edit(props) {
{applyFilters('kadence.tableBlockStickySettings', StickyUpsell, props)}

<KadencePanelBody
title={__('Table Sizing', 'kadnece-blocks')}
title={__('Table Sizing', 'kadence-blocks')}
panelName={'table-sizing'}
initialOpen={false}
>
Expand Down Expand Up @@ -890,7 +894,8 @@ export function Edit(props) {
{Array.from({ length: columns }).map((_, index) => (
<KadencePanelBody
key={index}
title={__(`Column ${index + 1} Background`, 'kadence-blocks')}
// Translators: %d is the column number
title={sprintf(__('Column %d Background', 'kadence-blocks'), index + 1)}
panelName={'column-bg-' + index}
initialOpen={false}
>
Expand Down

0 comments on commit 3e209b9

Please sign in to comment.