SVG icons

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2019-07-23 22:22:35 -07:00
1 parent 8a0ebd26d8
commit 1859d41405
24 files changed
+156 -35

No files matched your search

+4 -3
View File
@@ -19,6 +19,7 @@
import { ClosureComponent, Component, Children } from "mithril";
import { m } from "./components";
import { getIcon } from "./icons";
interface Attribute {
id?: string;
@@ -78,9 +79,9 @@ function renderTable(
let direction = 1;
let symbol = "\u2981";
if (sortAttributes[i] > 0) symbol = "\u2bc6";
else if (sortAttributes[i] < 0) symbol = "\u2bc5";
let symbol = getIcon("unsorted");
if (sortAttributes[i] > 0) symbol = getIcon("sorted-dsc");
else if (sortAttributes[i] < 0) symbol = getIcon("sorted-asc");
const sortable = m(
"button",