Skip to content

AI-native design editor. Open-source Figma alternative.

fix(app): destructure font picker props

Danila Poyarkov00f0d3902ab5
diff --git a/src/components/font-picker/FontPicker.vue b/src/components/font-picker/FontPicker.vue
index 08ca4cb26..9208093f1 100644
--- a/src/components/font-picker/FontPicker.vue
+++ b/src/components/font-picker/FontPicker.vue
@@ -16,8 +16,8 @@ import { WEB_FONT_PROVIDER_IDS } from '@open-pencil/core/text'
import type { FontPickerUI } from '@open-pencil/vue'
const { panels } = useI18n()
-const props = defineProps<{ label?: string }>()
-const label = computed(() => props.label ?? panels.value.fontFamily)
+const { label: labelProp } = defineProps<{ label?: string }>()
+const label = computed(() => labelProp ?? panels.value.fontFamily)
const modelValue = defineModel<string>({ required: true })
const emit = defineEmits<{ select: [family: string] }>()