Skip to content

[Props] Explicit import of Component and FunctionComponent - #4667

Merged
thompsongl merged 1 commit into
elastic:masterfrom
thompsongl:4666-portal
Mar 29, 2021
Merged

thompsongl merged 1 commit into
elastic:masterfrom
thompsongl:4666-portal

Conversation

@thompsongl

Copy link
Copy Markdown
Contributor

Summary

Fixes #4666 and other similar (though unrecorded) issues.

A known bug in react-docgen-typescript causes React component types (Component and FunctionComponent) prefixed with React. to be excluded from parsing. This results in missing docgen info and errors in the props table.

Fix is to remove React. prefixes in the few, old cases where they still exist.

### Checklist

@thompsongl thompsongl added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Mar 26, 2021
@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❤️

@thompsongl
thompsongl merged commit c2d9167 into elastic:master Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Portals][Doc] Props table not available for Portals

3 participants