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

Refactored BlockSwitcher to functional components using hooks #24431

Conversation

javidalkaruzi
Copy link
Contributor

@javidalkaruzi javidalkaruzi commented Aug 7, 2020

Description

Related to #22890.

Refactored BlockSwitcher to use React Hooks.

How has this been tested?

Tested using existing unit tests for BlockSwitcher.
Tested by running npm run test.
Observed that I was able to switch blocks using Gutenberg block editor.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

Janvo Aldred added 6 commits August 6, 2020 21:36
…lkaruzi/gutenberg into refactor/block-switcher-component
Refactored BlockSwitcher to functional components using hooks
…lkaruzi/gutenberg into refactor/block-switcher-component
…lkaruzi/gutenberg into refactor/block-switcher-component
@ZebulanStanphill ZebulanStanphill added [Package] Block editor /packages/block-editor [Type] Code Quality Issues or PRs that relate to code quality labels Aug 7, 2020
@mcsf
Copy link
Contributor

mcsf commented Feb 9, 2021

Hi @javidalkaruzi, thanks for your PR!

Unfortunately, this one has fallen through the cracks and I see that, in the meantime, the same refactoring has already been done through another PR: #27674. Duplicating efforts is something we strive to avoid but is bound to happen in a project of this scale.

I'm going to close this PR, but I hope to see more of your contributions to Gutenberg!

@mcsf mcsf closed this Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block editor /packages/block-editor [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants