Migrate Traefik Proxy dashboard UI to React
This commit is contained in:
parent
4790e4910f
commit
f16fff577a
324 changed files with 28303 additions and 19567 deletions
5
webui/src/utils/string.ts
Normal file
5
webui/src/utils/string.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export const capitalizeFirstLetter = (string: unknown): string | null => {
|
||||
if (!string) return null
|
||||
|
||||
return string?.toString()?.charAt(0)?.toUpperCase() + string?.toString()?.slice(1)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue