fix: render icon of view selector using icon component

This commit is contained in:
Shariq Ansari 2024-08-21 14:32:06 +05:30
parent 2b9c583b5d
commit c6f2f82940

View File

@ -22,19 +22,7 @@
:label="__(viewControls.currentView.label)"
>
<template #prefix>
<div v-if="isEmoji(viewControls.currentView.icon)">
{{ viewControls.currentView.icon }}
</div>
<FeatherIcon
v-else-if="typeof viewControls.currentView.icon == 'string'"
:name="viewControls.currentView.icon"
class="h-4"
/>
<component
v-else
:is="viewControls.currentView.icon"
class="h-4"
/>
<Icon :icon="viewControls.currentView.icon" class="h-4" />
</template>
<template #suffix>
<FeatherIcon