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

Fix modal component usage example code #18452

merged 1 commit into from Nov 12, 2019


Copy link

ediamin commented Nov 12, 2019


This PR fixes some issues relate to the example usage code for Modal component.


  • import useState from @wordpress/compose, which should be @wordpress/element.
  • There are two lines contain { closeModal ) } that contains extra close parenthesis.

Types of changes

  • import useState from @wordpress/element
  • remove extra close parenthesis


  • My code is tested.
  • My code follows the WordPress code style.
Soean approved these changes Nov 12, 2019
Copy link

Soean left a comment

Thanks, good catch!

@Soean Soean merged commit 133db23 into WordPress:master Nov 12, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
CreativeDive added a commit to CreativeDive/gutenberg that referenced this pull request Nov 12, 2019
@youknowriad youknowriad added this to the Gutenberg 7.0 milestone Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.