chore(build): move to react 18 + vite

This commit is contained in:
rektdeckard
2023-02-02 22:15:00 -07:00
parent ced8732edb
commit 1b8d6c48fc
46 changed files with 198 additions and 450 deletions

View File

@@ -4,9 +4,7 @@ import { icons as iconData } from "@phosphor-icons/core";
import { IconEntry } from ".";
export const icons: ReadonlyArray<IconEntry> = iconData.map((entry) => ({
name: entry.name,
categories: entry.categories,
tags: entry.tags,
...entry,
Icon: Icons[entry.pascal_name as keyof typeof Icons] as Icons.Icon,
}));

View File

@@ -1,10 +1,7 @@
import { Icon } from "phosphor-react";
import { IconCategory } from "@phosphor-icons/core";
import { IconEntry as CoreEntry } from "@phosphor-icons/core";
export interface IconEntry {
name: string;
categories: IconCategory[];
tags: string[];
export interface IconEntry extends CoreEntry {
Icon: Icon;
}