Require the use of hex, rgb, rgba or rainbow for colors and refactor config types

This commit is contained in:
uwap 2018-02-04 03:43:22 +01:00
parent 436abf682f
commit a96fa1622b
14 changed files with 178 additions and 147 deletions

View file

@ -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(" ")}`;
}