generated from Seekra/repository-template
refactor(icons): fix typo
Used 'icon' instead of 'Icon'.
This commit is contained in:
@@ -34,14 +34,14 @@ const icons = import.meta.glob('@/assets/icons/*.svg', {
|
|||||||
import: 'default'
|
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));
|
const size = computed(() => ensureUnit(props.size));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="icon-container">
|
<div class="icon-container">
|
||||||
<img :src="Icon" :style="{ height: `${size}`, width: `${size}` }" />
|
<img :src="icon" :style="{ height: `${size}`, width: `${size}` }" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user