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

Commit

Permalink
Rename onChange callback name to better reflect its purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanijak committed Oct 23, 2023
1 parent 624fdfc commit 99b6415
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ColumnsControl = ( props: DisplayLayoutToolbarProps ) => {

const defaultLayout = getDefaultDisplayLayout();

const onToggleChange = ( value: boolean ) => {
const onShrinkColumnsToggleChange = ( value: boolean ) => {
props.setAttributes( {
displayLayout: {
...props.displayLayout,
Expand Down Expand Up @@ -73,7 +73,7 @@ const ColumnsControl = ( props: DisplayLayoutToolbarProps ) => {
checked={ !! shrinkColumns }
label={ toggleLabel }
help={ toggleHelp }
onChange={ onToggleChange }
onChange={ onShrinkColumnsToggleChange }
/>
</ToolsPanelItem>
<ToolsPanelItem
Expand Down

0 comments on commit 99b6415

Please sign in to comment.