Skip to content

Commit 20e9385

Browse files
committed
Blocks: Assign Columns description by block API property
1 parent 6959d9f commit 20e9385

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

blocks/library/columns/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { registerBlockType } from '../../api';
1616
import RangeControl from '../../inspector-controls/range-control';
1717
import InnerBlocks from '../../inner-blocks';
1818
import InspectorControls from '../../inspector-controls';
19-
import BlockDescription from '../../block-description';
2019

2120
function mapInnerBlocks( innerBlocks, columns, callback ) {
2221
return columns.map( ( endOffset, index ) => {
@@ -39,6 +38,8 @@ registerBlockType( 'core/columns', {
3938
},
4039
},
4140

41+
description: __( 'A multi-column layout of content.' ),
42+
4243
getEditWrapperProps() {
4344
return { 'data-align': 'wide' };
4445
},
@@ -96,9 +97,6 @@ registerBlockType( 'core/columns', {
9697
return [
9798
focus && (
9899
<InspectorControls key="inspector">
99-
<BlockDescription>
100-
<p>{ __( 'A multi-column layout of content.' ) }</p>
101-
</BlockDescription>
102100
<RangeControl
103101
label={ __( 'Columns' ) }
104102
value={ columns.length }

0 commit comments

Comments
 (0)