diff --git a/src/components/EntryForm.vue b/src/components/EntryForm.vue index 94df8ec..2c71036 100644 --- a/src/components/EntryForm.vue +++ b/src/components/EntryForm.vue @@ -5,6 +5,7 @@ import { Input } from '@/components/ui/input'; import { Form, FormItem, FormLabel, FormField, FormControl, FormMessage, FormDescription } from '@/components/ui/form'; import { Button } from './ui/button'; import { Textarea } from '@/components/ui/textarea'; +import { Entry } from '@/data/entries'; const emit = defineEmits<{ submit: [value: CreateEntrySchema] @@ -12,6 +13,7 @@ const emit = defineEmits<{ const props = defineProps<{ action: 'create' | 'edit' + inputEntry?: Entry | undefined }>() @@ -31,7 +33,7 @@ const createEntrySchema = toTypedSchema(createEntryZodSchema) - + @@ -40,7 +42,7 @@ const createEntrySchema = toTypedSchema(createEntryZodSchema) -