Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserter - use GB createBlock to generate new blocks #89

Merged
merged 3 commits into from
Aug 3, 2018

Conversation

mzorz
Copy link
Contributor

@mzorz mzorz commented Aug 2, 2018

While looking to replace and find a function in GB that would generate IDs, realized we should completely use GB's createBlock function instead of the mocked up buildEmptyBlock I was using.

This PR removes the use of the mocked up method and uses import { createBlock } from '@wordpress/blocks'; to actually create a new block when the + icon is pressed on any of the items toolbar.

This was referenced Aug 2, 2018
@daniloercoli
Copy link
Contributor

Looks good!

@daniloercoli daniloercoli merged commit 5e392d5 into try/inserter-take1 Aug 3, 2018
@daniloercoli daniloercoli deleted the try/inserter-use-create-block-gb branch August 3, 2018 12:43
hypest pushed a commit that referenced this pull request Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants