chore: use template wrapper for slot

This commit is contained in:
Liyas Thomas
2023-12-11 04:49:25 +05:30
committed by Andrew Bastin
parent 85285a5204
commit 40b9508361

View File

@@ -8,9 +8,9 @@
:class="large ? 'w-32 h-32' : 'w-16 h-16'"
:alt="alt"
/>
<div v-if="hasIcon">
<template v-if="hasIcon">
<slot name="icon"></slot>
</div>
</template>
<span v-if="heading" class="font-semibold mt-2 text-center">
{{ heading }}
</span>