add supported prefix comment

This commit is contained in:
davidsmejia 2023-04-30 20:34:31 -04:00
parent 5353897684
commit 9a8f40145c

View File

@ -26,6 +26,7 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log
); );
} }
// check mdi- or si- prefixed icons
const prefix = icon.split("-")[0] const prefix = icon.split("-")[0]
const prefixPaths = { const prefixPaths = {
'mdi': "https://cdn.jsdelivr.net/npm/@mdi/svg@latest/svg/", 'mdi': "https://cdn.jsdelivr.net/npm/@mdi/svg@latest/svg/",