From edd5fa4c0d8107d151f8e890eaaeb8293983bd6d Mon Sep 17 00:00:00 2001 From: Ramon Date: Tue, 11 Jun 2024 18:20:45 +1000 Subject: [PATCH] Block style variation: rename hook (#62464) Co-authored-by: ramonjd Co-authored-by: aaronrobertshaw --- packages/block-editor/src/hooks/block-style-variation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/hooks/block-style-variation.js b/packages/block-editor/src/hooks/block-style-variation.js index ee02b97d216704..311997d46f0ada 100644 --- a/packages/block-editor/src/hooks/block-style-variation.js +++ b/packages/block-editor/src/hooks/block-style-variation.js @@ -43,7 +43,7 @@ function getVariationNameFromClass( className, registeredStyles = [] ) { return null; } -function useBlockSyleVariation( name, variation, clientId ) { +function useBlockStyleVariation( name, variation, clientId ) { // Prefer global styles data in GlobalStylesContext, which are available // if in the site editor. Otherwise fall back to whatever is in the // editor settings and available in the post editor. @@ -96,7 +96,7 @@ function useBlockProps( { name, className, clientId } ) { const variation = getVariationNameFromClass( className, registeredStyles ); const variationClass = `is-style-${ variation }-${ clientId }`; - const { settings, styles } = useBlockSyleVariation( + const { settings, styles } = useBlockStyleVariation( name, variation, clientId