Skip to content

Commit

Permalink
Block style variation: rename hook (#62464)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored Jun 11, 2024
1 parent 3a20fb0 commit edd5fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/block-style-variation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit edd5fa4

Please sign in to comment.