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(LoginPage): updated markup for LoginMainHeader #752

Merged
merged 5 commits into from
Sep 2, 2024

Conversation

thatblindgeye
Copy link
Collaborator

Closes #751

imports: ImportSpecifier | ImportSpecifier[],
exactMatch: boolean = false
) {
if (!pfPackageMatches("@patternfly/react-core", node.source.value)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't the package here be customizable so that table or extensions or what have you are supported?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whoops

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@adamviktora adamviktora left a comment

Choose a reason for hiding this comment

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

LGTM regarding the rule, only a possible refactoring of the checkMatchingImportDeclaration / findSpecifier helper

}

/** Used to check whether the current ImportDeclaration node matches at least 1 of the import specifiers. */
export function checkMatchingImportDeclaration(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you refactor this helper to return only boolean? Or if there is a purpose of returning the specifier to return it as ImportSpecifier with the type casting. Depends on whether we need the specifier in a return value, but in the array case it would just return the first specifier, so maybe using .some everywhere (instead of .find) would be better.

@adamviktora adamviktora merged commit 722b9e6 into patternfly:main Sep 2, 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.

LoginPage - updated markup
3 participants