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

fix: add emoji-picker-react, update react-hook-form syntax, add defense for error display #6127

Merged
merged 10 commits into from
Jun 20, 2023

Conversation

nikk15
Copy link
Contributor

@nikk15 nikk15 commented Jun 19, 2023

With the new React 18 update, some unexpected bugs were introduced causing the emoji picker and room settings sections to crash. This PR solves this problem, as well as solving the display of react-hook-form error messages.

  • swap emoji-mart package for emoji-picker-react (more current and supported)
  • update react-hook-form syntax for register and errors
  • optional chaining for react-hook-form error messages

@nikk15 nikk15 temporarily deployed to smoke June 19, 2023 21:22 — with GitHub Actions Inactive
@nikk15 nikk15 temporarily deployed to hc-bio June 19, 2023 21:22 — with GitHub Actions Inactive
Copy link
Contributor

@johnshaughnessy johnshaughnessy left a comment

Choose a reason for hiding this comment

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

Lgtm and it fixes the issue where clicking the emoji picker from the chat menu wipes the whole UI.

@nikk15 nikk15 merged commit d64fec9 into master Jun 20, 2023
@nikk15 nikk15 deleted the settings-and-emoji-bug-fix branch June 20, 2023 14:03
@keianhzo keianhzo mentioned this pull request Jun 21, 2023
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