Skip to content

Commit faf05f5

Browse files
committed
remove designs for v2
1 parent c0eb2f5 commit faf05f5

File tree

1 file changed

+7
-8
lines changed
  • src/deprecated/v2/modules/block-designs

1 file changed

+7
-8
lines changed

src/deprecated/v2/modules/block-designs/index.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
/**
22
* Internal dependencies
33
*/
4-
import { DesignLibraryControl } from '../../components'
4+
// import { DesignLibraryControl } from '../../components'
55

66
/**
77
* External dependencies
88
*/
99
import { PanelAdvancedSettings } from '~stackable/components'
10-
import { applyBlockDesign } from '~stackable/util'
10+
// import { applyBlockDesign } from '~stackable/util'
1111
import { 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'
1917
import { __ } from '@wordpress/i18n'
2018
import { 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
)

0 commit comments

Comments
 (0)