From 99b6415905451fefeba480bd347be6d3bfd17ee2 Mon Sep 17 00:00:00 2001 From: Karol Manijak <20098064+kmanijak@users.noreply.github.com> Date: Mon, 23 Oct 2023 09:50:38 +0200 Subject: [PATCH] Rename onChange callback name to better reflect its purpose --- .../product-collection/inspector-controls/columns-control.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/blocks/product-collection/inspector-controls/columns-control.tsx b/assets/js/blocks/product-collection/inspector-controls/columns-control.tsx index 35565add6cb..80dc78ac4c3 100644 --- a/assets/js/blocks/product-collection/inspector-controls/columns-control.tsx +++ b/assets/js/blocks/product-collection/inspector-controls/columns-control.tsx @@ -37,7 +37,7 @@ const ColumnsControl = ( props: DisplayLayoutToolbarProps ) => { const defaultLayout = getDefaultDisplayLayout(); - const onToggleChange = ( value: boolean ) => { + const onShrinkColumnsToggleChange = ( value: boolean ) => { props.setAttributes( { displayLayout: { ...props.displayLayout, @@ -73,7 +73,7 @@ const ColumnsControl = ( props: DisplayLayoutToolbarProps ) => { checked={ !! shrinkColumns } label={ toggleLabel } help={ toggleHelp } - onChange={ onToggleChange } + onChange={ onShrinkColumnsToggleChange } />