From aab6a1eb34cb30476f349bb5056cb1609d79c1bb Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 25 Apr 2024 11:38:22 +0530 Subject: [PATCH] chore: code cleanup --- app/javascript/v3/components/Form/Button.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/javascript/v3/components/Form/Button.vue b/app/javascript/v3/components/Form/Button.vue index 6d19eb592..b6b4f0325 100644 --- a/app/javascript/v3/components/Form/Button.vue +++ b/app/javascript/v3/components/Form/Button.vue @@ -45,17 +45,13 @@ const props = defineProps({ type: String, default: 'primary', }, - iconOnly: { - type: Boolean, - default: false, - }, }); const emits = defineEmits(['click']); const attrs = useAttrs(); const colorClass = computed(() => { - if (props.isDisabled) { + if (attrs.disabled) { return 'bg-ash-200 text-ash-600 cursor-not-allowed'; }