mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-03-12 02:22:07 -05:00
* 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
10 lines
322 B
TypeScript
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);
|
|
};
|