mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 15:05:48 +01:00
fix: Fix type error
This commit is contained in:
@@ -72,16 +72,7 @@ export default function AddItemShelfItem(props: any) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function MatchIcon(
|
function MatchIcon(name: string, form: any) {
|
||||||
name: string,
|
|
||||||
form: UseForm<{
|
|
||||||
type: any;
|
|
||||||
name: any;
|
|
||||||
icon: any;
|
|
||||||
url: any;
|
|
||||||
apiKey: any;
|
|
||||||
}>
|
|
||||||
) {
|
|
||||||
fetch(`https://cdn.jsdelivr.net/gh/walkxhub/dashboard-icons/png/${name.replace(/\s+/g, '-').toLowerCase()}.png`)
|
fetch(`https://cdn.jsdelivr.net/gh/walkxhub/dashboard-icons/png/${name.replace(/\s+/g, '-').toLowerCase()}.png`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user