chore: more cleanup

This commit is contained in:
Muhsin Keloth
2024-04-25 13:18:15 +05:30
parent 39b9799bdf
commit 9528297ddc
4 changed files with 13 additions and 50 deletions
+1 -13
View File
@@ -5,12 +5,7 @@
v-bind="$attrs"
@click="handleClick"
>
<fluent-icon
v-if="icon"
:size="iconSize"
:icon="icon"
class="flex-shrink-0"
/>
<fluent-icon v-if="icon" size="1.16em" :icon="icon" class="flex-shrink-0" />
<span
v-if="$slots.default"
class="text-sm font-medium truncate ltr:text-left rtl:text-right"
@@ -93,13 +88,6 @@ const sizeClass = computed(() => {
return 'h-10 px-4 py-2.5 text';
});
const iconSize = computed(() => {
if (props.size === 'medium') {
return '1em';
}
return '1.2em';
});
const buttonClasses = computed(() => [colorClass.value, sizeClass.value]);
const handleClick = event => {