Skip to content

Commit

Permalink
Issue #31 - InspectorControls now comes from wp.blockEditor. Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jan 8, 2020
1 parent c34503b commit c16a7b8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions blocks/oik-blockinfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Each field is optional.
* You can't choose the order but you can try to style it!
*
* @copyright (C) Copyright Bobbing Wide 2019
* @copyright (C) Copyright Bobbing Wide 2019, 2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
Expand All @@ -28,8 +28,11 @@ const {
} = wp.blocks;
const {
BlockIcon,
InspectorControls,

} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down Expand Up @@ -109,6 +112,9 @@ export default registerBlockType(

},

example: {
},

transforms: {
from: [
{
Expand Down

0 comments on commit c16a7b8

Please sign in to comment.