Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 5, 2023
1 parent 135b6b0 commit 4825492
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions packages/block-editor/src/hooks/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,41 +361,38 @@ export const withBlockStyleControls = createHigherOrderComponent(

const shouldDisplayControls = useDisplayBlockControls();
const blockEditingMode = useBlockEditingMode();
const { clientId, name, setAttributes, __unstableParentLayout } = props;

return (
<>
{ shouldDisplayControls && blockEditingMode === 'default' && (
<>
<ColorEdit
clientId={ props.clientId }
name={ props.name }
setAttributes={ props.setAttributes }
clientId={ clientId }
name={ name }
setAttributes={ setAttributes }
/>
<BackgroundImagePanel
clientId={ props.clientId }
name={ props.name }
setAttributes={ props.setAttributes }
clientId={ clientId }
name={ name }
setAttributes={ setAttributes }
/>
<TypographyPanel
clientId={ props.clientId }
name={ props.name }
setAttributes={ props.setAttributes }
__unstableParentLayout={
props.__unstableParentLayout
}
clientId={ clientId }
name={ name }
setAttributes={ setAttributes }
__unstableParentLayout={ __unstableParentLayout }
/>
<BorderPanel
clientId={ props.clientId }
name={ props.name }
setAttributes={ props.setAttributes }
clientId={ clientId }
name={ name }
setAttributes={ setAttributes }
/>
<DimensionsPanel
clientId={ props.clientId }
name={ props.name }
setAttributes={ props.setAttributes }
__unstableParentLayout={
props.__unstableParentLayout
}
clientId={ clientId }
name={ name }
setAttributes={ setAttributes }
__unstableParentLayout={ __unstableParentLayout }
/>
</>
) }
Expand Down

0 comments on commit 4825492

Please sign in to comment.