From 6113a6bbadcd45c836aecdbd8330946f95add587 Mon Sep 17 00:00:00 2001 From: Caroline Desprat Date: Wed, 28 Aug 2024 09:48:54 +0000 Subject: [PATCH] refactor: use enums --- src/components/Form/FormActions/FormActionsCompact.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/Form/FormActions/FormActionsCompact.vue b/src/components/Form/FormActions/FormActionsCompact.vue index 65bcba6988..3cda884bcd 100644 --- a/src/components/Form/FormActions/FormActionsCompact.vue +++ b/src/components/Form/FormActions/FormActionsCompact.vue @@ -3,14 +3,19 @@ import { computed, watch, provide } from 'vue' import FormActionsCompactDropdown from './FormActionsCompactDropdown' +import { VARIANT, variantValidator } from '@/enums/variants' +import { buttonSizeValidator, SIZE } from '@/enums/sizes' + const props = defineProps({ variant: { type: String, - default: 'action' + default: VARIANT.ACTION, + validator: variantValidator }, size: { type: String, - default: 'md' + default: SIZE.MD, + validator: buttonSizeValidator }, dropdownIcon: { type: String,