mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 22:45:49 +01:00
fix: Fix type error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user