Add sample icons and refactor Icon interface

This commit is contained in:
rektdeckard
2020-07-15 18:06:16 -04:00
parent 50b114ee7a
commit 8888227be1
9 changed files with 1203 additions and 1209 deletions

View File

@@ -1,5 +1,5 @@
import { atom } from "recoil";
import { IconFillStyle } from "../lib/Icon";
import { IconStyle } from "../lib/Icon";
/**
* ATOM
@@ -8,14 +8,12 @@ import { IconFillStyle } from "../lib/Icon";
* updates will result in a re-render of all components subscribed to that atom:
*/
export type IconStyleQuery = IconFillStyle | null | undefined;
export const searchQueryAtom = atom<string>({
key: "searchQueryAtom",
default: "",
});
export const styleQueryAtom = atom<IconStyleQuery>({
export const styleQueryAtom = atom<IconStyle>({
key: "styleQueryAtom",
default: undefined,
default: IconStyle.REGULAR,
});