Skip to content

Conversation

@dominik-petrik
Copy link
Contributor

What: Closes #7751

@patternfly-build
Copy link
Collaborator

patternfly-build commented Jul 28, 2022

@dominik-petrik dominik-petrik requested a review from tompsota July 28, 2022 15:22
@nicolethoen
Copy link
Contributor

It looks like the build is failing because you have an extra " before an isBeta flag on one of your examples?
either that or it's unable to parse the isBeta before the file name.

@tompsota
Copy link
Contributor

tompsota commented Aug 1, 2022

It looks like the build is failing because you have an extra " before an isBeta flag on one of your examples? either that or it's unable to parse the isBeta before the file name.

Seems like there is missing " on L61, the isBeta flag before filename shouldn't cause any problems. Although it is better to follow this syntax: ts file='<<filename>>' isBeta

Copy link
Contributor

@thatblindgeye thatblindgeye left a 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

Copy link
Contributor

@tompsota tompsota left a 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
Copy link
Contributor

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>
Copy link
Contributor

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>

Copy link
Contributor

@thatblindgeye thatblindgeye 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

@tompsota tompsota left a 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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div>
<>

<Button>Toggle popover</Button>
</Popover>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
</div>
</>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On it!

Copy link
Contributor

@tompsota tompsota left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@tlabaj tlabaj merged commit 0d3f7be into patternfly:main Aug 18, 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.

Popover: convert examples to TypeScript

6 participants