mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 00:02:13 +00:00
fix(frontend): Fix app icons (#1977)
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { toKebabCase } from '../utils'
|
||||
function toKebabCase(str: string): string {
|
||||
return str
|
||||
.replace(/([a-z0-9])([A-Z])/g, '$1-$2') // Convert camel case to kebab case
|
||||
.replace(/([A-Z0-9])([A-Z])/g, '$1-$2') // Separate consecutive uppercase letters
|
||||
.replace(/([a-z])([0-9])/g, '$1-$2') // Separate letters from digits
|
||||
.toLowerCase()
|
||||
}
|
||||
|
||||
export async function loadIcon(name: string): Promise<any> {
|
||||
let iconComponent: any
|
||||
|
||||
Reference in New Issue
Block a user