File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/deprecated/v2/modules/block-designs Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 11/**
22 * Internal dependencies
33 */
4- import { DesignLibraryControl } from '../../components'
4+ // import { DesignLibraryControl } from '../../components'
55
66/**
77 * External dependencies
88 */
99import { PanelAdvancedSettings } from '~stackable/components'
10- import { applyBlockDesign } from '~stackable/util'
10+ // import { applyBlockDesign } from '~stackable/util'
1111import { i18n } from 'stackable'
1212
1313/**
1414 * WordPress dependencies
1515 */
16- import {
17- addFilter , doAction ,
18- } from '@wordpress/hooks'
16+ import { addFilter , doAction } from '@wordpress/hooks'
1917import { __ } from '@wordpress/i18n'
2018import { Fragment } from '@wordpress/element'
2119
22- const addDesignPanel = blockName => output => {
20+ const addDesignPanel = ( ) => output => {
2321 return (
2422 < Fragment >
2523 { output }
2624 < PanelAdvancedSettings
2725 title = { __ ( 'Designs' , i18n ) }
2826 initialOpen = { true }
2927 >
30- < p className = "components-base-control__help" > { __ ( 'You will not lose your block content when changing designs.' , i18n ) } </ p >
28+ < p className = "components-base-control__help" > { __ ( 'The designs for v2 blocks have been replaced with the new design library.' , i18n ) } </ p >
29+ { /* <p className="components-base-control__help">{ __( 'You will not lose your block content when changing designs.', i18n ) }</p>
3130 <DesignLibraryControl
3231 block={ `ugb/${ blockName }` }
3332 onSelect={ designData => {
3433 applyBlockDesign( designData.attributes )
3534 } }
36- />
35+ /> */ }
3736 </ PanelAdvancedSettings >
3837 </ Fragment >
3938 )
You can’t perform that action at this time.
0 commit comments