refactor(icons): fix typo

Used 'icon' instead of 'Icon'.
This commit is contained in:
2026-08-09 13:09:39 +02:00
committed by Gitea
parent 034256e81b
commit e1dab8a4c7
+2 -2
View File
@@ -34,14 +34,14 @@ const icons = import.meta.glob('@/assets/icons/*.svg', {
import: 'default'
});
const Icon = computed(() => icons[`/src/assets/icons/${props.name}.svg`]);
const icon = computed(() => icons[`/src/assets/icons/${props.name}.svg`]);
const size = computed(() => ensureUnit(props.size));
</script>
<template>
<div class="icon-container">
<img :src="Icon" :style="{ height: `${size}`, width: `${size}` }" />
<img :src="icon" :style="{ height: `${size}`, width: `${size}` }" />
</div>
</template>