chore(build): move to react 18 + vite
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user