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

refactor: SuggestionsOverlay.js functional component #604

Merged
merged 4 commits into from
Jul 18, 2022

Conversation

Sigrsig
Copy link
Collaborator

@Sigrsig Sigrsig commented Jul 11, 2022

Converts SuggestionsOverlay.js from class component to functional component

@vercel
Copy link

vercel bot commented Jul 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-mentions ✅ Ready (Inspect) Visit Preview Jul 12, 2022 at 10:29AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Jul 11, 2022

🦋 Changeset detected

Latest commit: 5e284f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-mentions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

@dev-talha-akbar dev-talha-akbar left a comment

Choose a reason for hiding this comment

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

Flawless, @Sigrsig! 🚀

@dev-talha-akbar
Copy link

@Sigrsig One question, however: did someone forget to add customSuggestionsContainer to propTypes before and if yes, now it's there, do we have better prop type than any?

@Sigrsig
Copy link
Collaborator Author

Sigrsig commented Jul 13, 2022

@Sigrsig One question, however: did someone forget to add customSuggestionsContainer to propTypes before and if yes, now it's there, do we have better prop type than any?

That's a good question. I guess it would depend on how the user would use it? If it's only React elements we could use PropTypes.element?

@dev-talha-akbar
Copy link

@Sigrsig Based on the code at line 67, could we use PropTypes.func?

@Sigrsig Sigrsig merged commit 834240e into master Jul 18, 2022
@Sigrsig Sigrsig deleted the suggestionsoverlay-to-hooks branch July 18, 2022 06:50
Sigrsig added a commit that referenced this pull request Jul 18, 2022
@Sigrsig
Copy link
Collaborator Author

Sigrsig commented Jul 18, 2022

Sounds like a plan. I'll do a quick fix for that today!

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.

2 participants