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

feat: Dynamic imports BadWordsNext Chat #598

Merged
merged 4 commits into from
Jan 23, 2024

Conversation

DevDaniloFerrari
Copy link

Fixes Issue

My PR closes #593

πŸ‘¨β€πŸ’» Changes proposed(What did you do ?)

I created a function called getBadwords, which imports BadWordsNext and EN only when handleSubmit is triggered. Additionally, I introduced a new component called BadwordHideShow, as it also utilizes badword and needed to be externalized.

βœ”οΈ Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title and description of the PR is clear and explains the approach.

Note to reviewers

This already enhances performance to some extent. However, I believe we can further modularize the chat section, enabling us to identify more performance optimization opportunities.

πŸ“· Screenshots

image
image

Copy link

vercel bot commented Jan 22, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @Dun-sin on Vercel.

@Dun-sin first needs to authorize it.

Copy link
Owner

@Dun-sin Dun-sin left a comment

Choose a reason for hiding this comment

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

Looks good, just what I talked about on formatting, and on the other breaking of the components, feel free to create issues when you've thought of ideas for it

src/components/Chat.tsx Show resolved Hide resolved
Copy link
Owner

@Dun-sin Dun-sin left a comment

Choose a reason for hiding this comment

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

Alright, looks good
You did great, thanks for contributing, I hope you will stick around and continue to contribute to this project.

Consider giving this project a star and joining the community discord server if you haven't for more resources and opportunities to connect with others. πŸ‘‰πŸ½hereπŸ‘ˆπŸ½

Copy link

vercel bot commented Jan 23, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
whisper βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jan 23, 2024 3:37pm

@Dun-sin Dun-sin merged commit fbfff92 into Dun-sin:main Jan 23, 2024
4 checks passed
Dun-sin pushed a commit that referenced this pull request Jan 24, 2024
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.

[FEATURE] Improve on Chat component size
2 participants