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)Separate Tags logic into its own function #1526

Conversation

jwnasambu
Copy link
Contributor

@jwnasambu jwnasambu commented Dec 6, 2023

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

I refactored the code to separate the Tags logic into its own function and pass the necessary props to it to avoid defining a component inside another component while maintaining the same functionality.

Screenshots

Related Issue

Other

Copy link
Member

@vasharma05 vasharma05 left a comment

Choose a reason for hiding this comment

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

Thank you @jwnasambu for the fix!

@sherrif10
Copy link
Member

sherrif10 commented Dec 7, 2023

Hi @jwamalwa . well done. though the branch name is toooo long. i think we also need to consider that.

@donaldkibet donaldkibet merged commit 36162d4 into openmrs:main Dec 7, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants