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

feat(component groups): rename various components #776

Merged

Conversation

adamviktora
Copy link
Contributor

Closes #769, #772, #773

  • Also changes the renameComponent helper to update node name when default import matches the component name, e.g.: import InvalidObject from '@patternfly/react-component-groups/dist/cjs/InvalidObject/index'; <InvalidObject /> will update to import MissingPage from '@patternfly/react-component-groups/dist/cjs/MissingPage/index'; <MissingPage data-codemods />

Comment on lines 81 to 82
// These rules rename components. These components also have mods renaming props on them.
// -> we have to rename the component after the rules renaming props finish
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rather than this, could we update the rename props rule(s) for these components to target either the old or new name?

@thatblindgeye thatblindgeye merged commit aa1d152 into patternfly:main Sep 24, 2024
3 checks passed
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.

[component-groups] - ContentHeader [component-groups] - InvalidObject [component-groups] - NotAuthorized
2 participants