-
Notifications
You must be signed in to change notification settings - Fork 377
chore(Popover) convert examples to TypeScript #7770
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
Conversation
|
Preview: https://patternfly-react-pr-7770.surge.sh A11y report: https://patternfly-react-pr-7770-a11y.surge.sh |
|
It looks like the build is failing because you have an extra |
Seems like there is missing |
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good! Had some comments below for changes
packages/react-core/src/components/Popover/examples/PopoverCloseControlled.tsx
Show resolved
Hide resolved
packages/react-core/src/components/Popover/examples/PopoverCloseUncontrolled.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/Popover/examples/PopoverCloseControlled.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/Popover/examples/PopoverAdvanced.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/Popover/examples/PopoverAdvanced.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/Popover/examples/PopoverAdvanced.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/Popover/examples/PopoverWithIconInTheTitle.tsx
Outdated
Show resolved
Hide resolved
tompsota
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! :) Just have some comments.
| <Button>Toggle popover</Button> | ||
| </Popover> | ||
| </div>; | ||
| ```ts isBeta file="./PopoverWithIconInTheTitle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the previous comment, you are missing also file extension
| }; | ||
|
|
||
| return ( | ||
| <div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use <React.Fragment> (or <>) instead of wrapper <div>
2564396 to
04b3d64
Compare
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
tompsota
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last nit:
| }; | ||
|
|
||
| return ( | ||
| <div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <div> | |
| <> |
| <Button>Toggle popover</Button> | ||
| </Popover> | ||
| </div> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| </div> | |
| </> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it!
04b3d64 to
2da8ae9
Compare
tompsota
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What: Closes #7751