Skip to content

Commit

Permalink
Update example editor block
Browse files Browse the repository at this point in the history
  • Loading branch information
zackify committed May 8, 2018
1 parent f3cb59c commit 28ff3b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenblock",
"version": "0.6.4",
"version": "0.6.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
22 changes: 8 additions & 14 deletions plugin/src/notes/edit.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@

import { Input, Repeat } from 'gutenblock-controls';
import { Input, Repeat, Editor } from 'gutenblock-controls';

const Edit = ({ attributes, setAttributes }) => {
return (
<div>
<Repeat
attributes={attributes}
onChange={(name, value) => setAttributes({ [name]: value })}
setAttributes={setAttributes}
title="Notes"
max="50"
addNew="Add Item" attribute="notes"
>
<Input name="title" />
</Repeat>
<Editor>
<Repeat title="Notes" max="50" addNew="Add Item" attribute="notes">
<Input name="title" />
</Repeat>
</Editor>
</div>
)
};
);
};

0 comments on commit 28ff3b2

Please sign in to comment.