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

Remove the underscore ("_") from type value replace it with a space, and capitalize the first letter of each word #1977

Closed

Conversation

AbdulWahab3181
Copy link
Contributor

Ticket №:

closes #1969

Evidence:

image image

@AbdulWahab3181
Copy link
Contributor Author

@Rassl Could you please review and merge this PR?

@@ -48,6 +48,8 @@ export const FilterSearch = ({ showAllSchemas, setShowAllSchemas, schemaAll, anc
})
}

const formatType = (type: string) => type.replace(/_/g, ' ').replace(/\b\w/g, (char) => char.toUpperCase())
Copy link
Collaborator

Choose a reason for hiding this comment

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

move this out of component please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Rassl Addressed

@AbdulWahab3181
Copy link
Contributor Author

@Rassl I have addressed the changes. Could you please review and merge?

@Rassl Rassl closed this Sep 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
2 participants