You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the code to create a reusable function for capitalizing the first letter and making the rest lowercase.
As discussed in the code review for #866 the capitalization logic for project level and type is currently implemented inline within the ProjectDetailsPage component. To improve code reusability, testability, and maintainability, this issue proposes extracting this logic into a separate utility function.
Current Implementation
The current code for capitalization is as follows:
1. Create a new function in a utility file that performs the capitalization.
2. Replace the existing inline capitalization code in ProjectDetailsPage.js for project.level and project.type with calls to the new function.
The text was updated successfully, but these errors were encountered:
DESCRIPTION -
Refactor the code to create a reusable function for capitalizing the first letter and making the rest lowercase.
As discussed in the code review for #866 the capitalization logic for project level and type is currently implemented inline within the
ProjectDetailsPage
component. To improve code reusability, testability, and maintainability, this issue proposes extracting this logic into a separate utility function.Current Implementation
The current code for capitalization is as follows:
Proposed Changes
1. Create a new function in a utility file that performs the capitalization.
2. Replace the existing inline capitalization code in
ProjectDetailsPage.js
forproject.level
andproject.type
with calls to the new function.The text was updated successfully, but these errors were encountered: