From 1e08e914f99e896cef429db7552b1be993a65d93 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sun, 26 Jan 2025 18:26:29 +0100 Subject: [PATCH] fix: button and icon types `defineProps` somehow collided with the `IconProp` type of fontawesome: > Expression produces a union type that is too complex to represent. By using the original type the FontAwesome component types work again. Sadly autocompletion of the icon names doesn't work anymore (since the lib itself types it only as string), but I think because of that union problem that was already broken before. --- frontend/src/components/base/BaseButton.vue | 12 +++--- frontend/src/components/input/Button.vue | 26 ++++++------ frontend/src/components/misc/Card.vue | 4 +- frontend/src/components/misc/CreateEdit.vue | 4 +- frontend/src/components/misc/Dropdown.vue | 4 +- frontend/src/components/misc/DropdownItem.vue | 6 +-- frontend/src/components/misc/Icon.ts | 5 +-- frontend/src/components/misc/Subscription.vue | 4 +- frontend/src/types/global-components.d.ts | 7 ++-- frontend/src/types/vue-fontawesome.ts | 40 ------------------- 10 files changed, 36 insertions(+), 76 deletions(-) delete mode 100644 frontend/src/types/vue-fontawesome.ts diff --git a/frontend/src/components/base/BaseButton.vue b/frontend/src/components/base/BaseButton.vue index 94e13bfa8..2c9c3bad4 100644 --- a/frontend/src/components/base/BaseButton.vue +++ b/frontend/src/components/base/BaseButton.vue @@ -43,7 +43,7 @@ + diff --git a/frontend/src/components/misc/Card.vue b/frontend/src/components/misc/Card.vue index ca7c40ee9..4287426db 100644 --- a/frontend/src/components/misc/Card.vue +++ b/frontend/src/components/misc/Card.vue @@ -44,14 +44,14 @@