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

DimensionControl: Use WordPress package instead of react in code example #50435

Merged
merged 3 commits into from
May 9, 2023

Conversation

t-hamano
Copy link
Contributor

@t-hamano t-hamano commented May 8, 2023

What?

This PR rewrites useState to import from @wordpress/element instead of react in the code example. At the same time, I have rearranged the order according to the README usage.

Testing Instructions

There is no impact on the code.

@t-hamano t-hamano added the [Package] Components /packages/components label May 8, 2023
@t-hamano t-hamano self-assigned this May 8, 2023
@t-hamano t-hamano requested a review from ajitbohra as a code owner May 8, 2023 14:20
@@ -21,6 +21,7 @@
- `ToolbarItem`: Convert to TypeScript ([#49190](https://github.com/WordPress/gutenberg/pull/49190)).
- Move rich-text related types to the rich-text package ([#49651](https://github.com/WordPress/gutenberg/pull/49651)).
- `SlotFill`: simplified the implementation and removed unused code ([#50098](https://github.com/WordPress/gutenberg/pull/50098) and [#50133](https://github.com/WordPress/gutenberg/pull/50133)).
- `DimensionControl`: Use WordPress package instead of react in code example ([#50435](https://github.com/WordPress/gutenberg/pull/50435)).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is just a comment update, I added a CHANGELOG to the Internal section.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the "Documentation" section fit better?

@github-actions
Copy link

github-actions bot commented May 8, 2023

Flaky tests detected in 88307e0.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4927194040
📝 Reported issues:

Copy link
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@@ -21,6 +21,7 @@
- `ToolbarItem`: Convert to TypeScript ([#49190](https://github.com/WordPress/gutenberg/pull/49190)).
- Move rich-text related types to the rich-text package ([#49651](https://github.com/WordPress/gutenberg/pull/49651)).
- `SlotFill`: simplified the implementation and removed unused code ([#50098](https://github.com/WordPress/gutenberg/pull/50098) and [#50133](https://github.com/WordPress/gutenberg/pull/50133)).
- `DimensionControl`: Use WordPress package instead of react in code example ([#50435](https://github.com/WordPress/gutenberg/pull/50435)).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the "Documentation" section fit better?

@t-hamano
Copy link
Contributor Author

t-hamano commented May 9, 2023

Thanks for the review, @mirka!
I have moved the changelog to the "Documentation" section. I will merge them once the test passes.

@t-hamano t-hamano enabled auto-merge (squash) May 9, 2023 15:17
@t-hamano t-hamano merged commit 5b50833 into trunk May 9, 2023
@t-hamano t-hamano deleted the dimensioncontrol/fix-code-example branch May 9, 2023 15:29
@github-actions github-actions bot added this to the Gutenberg 15.8 milestone May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants