From 8344d1c13c6a3b04abe5d2c129ce5e8225bd44fa Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Fri, 15 Mar 2024 00:01:27 +0000
Subject: Shut missing prop errors up

---
 components/base/Button.vue | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'components/base/Button.vue')

diff --git a/components/base/Button.vue b/components/base/Button.vue
index 827e201..a53e329 100644
--- a/components/base/Button.vue
+++ b/components/base/Button.vue
@@ -11,7 +11,10 @@ const props = defineProps({
     default: 'normal',
   },
   label: String,
-  icon: Array<String>,
+  icon: {
+    type: Array<String>,
+    required: false
+  },
   disabled: Boolean,
 });
 
@@ -27,7 +30,7 @@ const onClick = (event: MouseEvent) => {
 <template>
   <a id="button" :class="{ text: type === 'text', solid: type === 'solid', disabled: disabled, [accent]: true }"
     @click.stop="onClick">
-    <font-awesome-icon :icon="icon" />
+    <font-awesome-icon :icon="icon" v-if="icon" />
     {{ label }}
   </a>
 </template>
-- 
cgit v1.2.3-70-g09d2

