Skip to content

Conversation

@andyyvo
Copy link
Contributor

@andyyvo andyyvo commented Jun 15, 2022

What: Closes #7549 . List examples have all been converted from JS to TS.

Additional issues: This is not a critical issue. However, when writing out the TS examples for ListIcons.tsx and ListLargeIcons.tsx, there was an error on line 6110 of node_modules/typescript/lib/typescript.js regarding replace being undefined in the normalizeSlashes function. This was solved by changing the name of the imports of the icons from BookOpen to BookOpenIcon in both the markdown and the TS file, which works since the icons are export default. I'm not entirely sure as to what was going on but this issue was resolved with that solution.

@patternfly-build
Copy link
Collaborator

patternfly-build commented Jun 15, 2022

Copy link
Contributor

@jenny-s51 jenny-s51 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

@kmcfaul kmcfaul left a comment

Choose a reason for hiding this comment

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

lgtm!

@nicolethoen nicolethoen merged commit 2aae8f8 into patternfly:main Jun 16, 2022
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.

List: convert examples to TypeScript

5 participants