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

correct types for markdown viewer label react 18 #2408

Merged
merged 3 commits into from
Oct 6, 2022
Merged

Conversation

mattcosta7
Copy link
Collaborator

@mattcosta7 mattcosta7 commented Oct 5, 2022

FC no longer has 'children' as implicit, so they must be defined separately. It seems that this was missed in review of the prs adding this component.

It may be worth locally updating the React.FC types to remove implicit children, or use Eslint to force usage of React.VFC instead, until react 18 typings land (where this implicit type is removed)

Screenshots

Please provide before/after screenshots for any visual changes

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

FC no longer has 'children' as implicit, so they must be defined separately
@mattcosta7 mattcosta7 requested review from a team and colebemis October 5, 2022 11:32
@changeset-bot
Copy link

changeset-bot bot commented Oct 5, 2022

🦋 Changeset detected

Latest commit: ea56089

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 77.18 KB (0%)
dist/browser.umd.js 77.81 KB (0%)

@mattcosta7 mattcosta7 temporarily deployed to github-pages October 5, 2022 11:39 Inactive
@mattcosta7 mattcosta7 temporarily deployed to github-pages October 5, 2022 11:54 Inactive
@mattcosta7 mattcosta7 mentioned this pull request Oct 5, 2022
@joshblack joshblack temporarily deployed to github-pages October 5, 2022 19:42 Inactive
@joshblack joshblack merged commit c639acb into main Oct 6, 2022
@joshblack joshblack deleted the mattcosta7-patch-1 branch October 6, 2022 19:33
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.

3 participants