Skip to content

Commit

Permalink
Use proper import statements for deprecated block components
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 4, 2018
1 parent c3463ca commit 5e9b3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core-blocks/spacer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ResizableBox from 're-resizable';
*/
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { InspectorControls } from '@wordpress/blocks';
import { InspectorControls } from '@wordpress/editor';
import { BaseControl, PanelBody } from '@wordpress/components';

/**
Expand Down
4 changes: 2 additions & 2 deletions editor/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
withColorContext,
getColorClass,
getColorName,
withColor,
withColors,
} from './components';

const componentsToDepreacate = {
Expand Down Expand Up @@ -61,7 +61,7 @@ const functionsToDeprecate = {
withColorContext,
getColorClass,
getColorName,
withColor,
withColors,
};

forEach( componentsToDepreacate, ( WrappedComponent, key ) => {
Expand Down

0 comments on commit 5e9b3df

Please sign in to comment.