diff --git a/src/components/resolvedicon.jsx b/src/components/resolvedicon.jsx index d503fe9d..5373474a 100644 --- a/src/components/resolvedicon.jsx +++ b/src/components/resolvedicon.jsx @@ -18,9 +18,16 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log ); } - // mdi- prefixed, material design icons - if (icon.startsWith("mdi-")) { - const iconName = icon.replace("mdi-", "").replace(".svg", ""); + const prefix = icon.split("-")[0] + const prefixPaths = { + 'mdi': "https://cdn.jsdelivr.net/npm/@mdi/svg@latest/svg/", + 'si' : "https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/", + }; + + if (prefix in prefixPaths) { + const iconName = icon.replace(`${prefix}-`, "").replace(".svg", ""); + const iconSource = `${prefixPaths[prefix]}${iconName}.svg`; + return (
);