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: Migrate GetHelpButton from Class-Based to Functional Component #5847

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

codic-yeeshu
Copy link

@codic-yeeshu codic-yeeshu commented Jun 23, 2024

This PR refactors the GetHelpButton component from a class-based component to a functional component.

Open questions and concerns

Please let me know if there is anything missing as I am new to open source.

before changes

WhatsApp.Video.2024-07-08.at.20.13.46.mp4

after changes

get.help.after.mp4

@ragesoss
Copy link
Member

ragesoss commented Jul 1, 2024

Please include before/after screenshots.

@codic-yeeshu
Copy link
Author

@ragesoss sir, while migrating the code to functional components, I encountered a issue, there are two functions named getKey and stop which are not being used in this component so they are causing eslint error. Additionally, another error occurred due to missing I18n translations because in the original code they don't have used it. Please guide me on that.

@ragesoss
Copy link
Member

The eslint errors are breaking the build, and you should identify how to fix them. If the functions are not being used now, and they were before, then removing the unused functions should be part of the refactor.

The i18n warnings will not cause the build to fail, and you can ignore those.

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