0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-03-12 02:22:07 -05:00
pingvin-share/frontend/src/utils/string.util.ts
Elias Schneider 5bc4f902f6
feat: improve config UI (#69)
* add first concept

* completed configuration ui update

* add button for testing email configuration

* improve mobile layout

* add migration

* run formatter

* delete unnecessary modal

* remove unused comment
2022-12-30 14:40:23 +01:00

10 lines
322 B
TypeScript

export const configVariableToFriendlyName = (variable: string) => {
return variable
.split("_")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
.join(" ");
};
export const capitalizeFirstLetter = (string: string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
};