diff --git a/front/src/components/ui/Link.vue b/front/src/components/ui/Link.vue index be5e2f76a..edee420b5 100644 --- a/front/src/components/ui/Link.vue +++ b/front/src/components/ui/Link.vue @@ -3,31 +3,30 @@ import { computed } from 'vue' import { type RouterLinkProps, RouterLink } from 'vue-router' import { type ColorProps, type VariantProps, propsToColor } from '~/composables/colors'; -const { to, icon, inline, round, ...otherProps } = defineProps() + round?: boolean; + } & ColorProps & VariantProps & RouterLinkProps>() const isExternalLink = computed(() => { return typeof to === 'string' && to.startsWith('http') }) const isIconOnly = computed(() => !!icon) +const isSimple = Object.keys(colorProps).length === 0