Skip to content
Snippets Groups Projects
Commit f003927e authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

allow use of scalar or number for icons (#4743)

* allow use of scalar or number

* don't duplicate icon path

* make flow play nice
parent b892677f
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,9 @@ ICON_PATHS["horizontal_bar"] = {
}
};
// $FlowFixMe
ICON_PATHS["scalar"] = ICON_PATHS["number"];
export function loadIcon(name) {
var def = ICON_PATHS[name];
if (!def) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment