fix: Fix type error

This commit is contained in:
Walkx
2022-05-12 14:14:48 +02:00
committed by GitHub
parent 2c225c308d
commit cc3e1ce848

View File

@@ -72,16 +72,7 @@ export default function AddItemShelfItem(props: any) {
);
}
function MatchIcon(
name: string,
form: UseForm<{
type: any;
name: any;
icon: any;
url: any;
apiKey: any;
}>
) {
function MatchIcon(name: string, form: any) {
fetch(`https://cdn.jsdelivr.net/gh/walkxhub/dashboard-icons/png/${name.replace(/\s+/g, '-').toLowerCase()}.png`)
.then((res) => {
if (res.status === 200) {