Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature/ISSUE-22-add-storybook-js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike England committed Apr 11, 2020
2 parents 722f0f2 + 43e346d commit 839ec71
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A block starter for WebDevStudios projects. Includes support for Sass, PostCSS,
Easily scaffold a block for the WordPress block editor via CLI. You just need to provide the `Namespace/BlockName`.

```bash
$ npm init @webdevstudios/wds-block WebDevStudios/TodoList
$ npm init @webdevstudios/block WebDevStudios/TodoList
$ cd todo-list
$ npm start
```
Expand Down
10 changes: 2 additions & 8 deletions src/block/rich-text/edit.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/**
* EDIT: Rich Rext Block
*/
const {
blockEditor: {
RichText,
},
i18n: {
__,
},
} = wp;
import { RichText } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';

const Edit = ( props ) => {
const {
Expand Down
10 changes: 2 additions & 8 deletions src/block/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
import edit from './edit';
import save from './save';

const {
i18n: {
__,
},
blocks: {
registerBlockType,
},
} = wp;
import { __ } from '@wordpress/i18n';
import { registerBlockType } from '@wordpress/blocks';

registerBlockType( 'wdsbs/rich-text-demo', {
title: __( 'RichText Block', 'wdsbs' ),
Expand Down
6 changes: 1 addition & 5 deletions src/block/rich-text/save.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/**
* SAVE: Rich Rext Block
*/
const {
blockEditor: {
RichText,
},
} = wp;
import { RichText } from '@wordpress/block-editor';

const Save = ( props ) => {
const {
Expand Down

0 comments on commit 839ec71

Please sign in to comment.