chore(Popover) convert examples to TypeScript#7770
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.
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.
Good job! :) Just have some comments.
| <Button>Toggle popover</Button> | ||
| </Popover> | ||
| </div>; | ||
| ```ts isBeta file="./PopoverWithIconInTheTitle |
There was a problem hiding this comment.
In addition to the previous comment, you are missing also file extension
| }; | ||
|
|
||
| return ( | ||
| <div> |
There was a problem hiding this comment.
You can use <React.Fragment> (or <>) instead of wrapper <div>
2564396 to
04b3d64
Compare
| }; | ||
|
|
||
| return ( | ||
| <div> |
There was a problem hiding this comment.
| <div> | |
| <> |
| <Button>Toggle popover</Button> | ||
| </Popover> | ||
| </div> | ||
| </div> |
There was a problem hiding this comment.
| </div> | |
| </> |
04b3d64 to
2da8ae9
Compare
What: Closes #7751