File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import blockStyles from './style'
88 */
99import classnames from 'classnames'
1010import { i18n , version as VERSION } from 'stackable'
11- import { useBlockLayoutDefaults } from '~stackable/hooks'
11+ import { useBlockLayoutDefaults , usePresetControls } from '~stackable/hooks'
1212import {
1313 AdvancedToggleControl ,
1414 FourRangeControl ,
@@ -164,6 +164,8 @@ const Edit = props => {
164164// props used by controls to prevent rerenders of all the inspector controls.
165165const InspectorControls = memo ( props => {
166166 const { getPlaceholder } = useBlockLayoutDefaults ( )
167+ const presets = usePresetControls ( 'spacingSizes' ) ?. getPresetMarks ( ) || null
168+
167169 return (
168170 < >
169171 < InspectorTabs />
@@ -187,6 +189,7 @@ const InspectorControls = memo( props => {
187189 highlight : 'column-spacing' ,
188190 defaultValue : '12px' ,
189191 } }
192+ marks = { presets }
190193 />
191194 </ InspectorLayoutControls >
192195
You can’t perform that action at this time.
0 commit comments