Skip to content

Commit

Permalink
updates label and corrects LayoutTypeSwitcher component misconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
spadeshoe committed Sep 26, 2024
1 parent 75717aa commit 55ec469
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/block-editor/src/hooks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,25 +313,25 @@ export default {
},
};

function LayoutTypeSwitcher( { key, onChange } ) {
function LayoutTypeSwitcher( { type, onChange } ) {
return (
<ToggleGroupControl
__next40pxDefaultSize
isBlock
label={ __( 'Layout Type Select' ) }
label={ __( 'Layout type' ) }
__nextHasNoMarginBottom
hideLabelFromVision
isAdaptiveWidth
value={ type }
onChange={ onChange }
>
{ getLayoutTypes().map( ( { name, label } ) => {
return (
<ToggleGroupControlOption
key={ name }
value={ name }
label={ name }
onClick={ () => onChange( name ) }
>
{ label }
</ToggleGroupControlOption>
label={ label }
/>
);
} ) }
</ToggleGroupControl>
Expand Down

0 comments on commit 55ec469

Please sign in to comment.