Require the use of hex, rgb, rgba or rainbow for colors and refactor config types
This commit is contained in:
parent
436abf682f
commit
a96fa1622b
14 changed files with 178 additions and 147 deletions
|
|
@ -3,6 +3,8 @@ import * as React from "react";
|
|||
import _ from "lodash";
|
||||
import { getInternals, getActuals } from "utils/state";
|
||||
|
||||
import type { Control } from "config/types";
|
||||
|
||||
export default function parseIconName(name: string): string {
|
||||
return `mdi ${name.split(" ").map((icon) => "mdi-".concat(icon)).join(" ")}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue