🐛 fix(shared-feedback-ui): use CreateFeedbackInput type in handleSubmit

Properly type the feedback submission handler with the exported
CreateFeedbackInput type from shared-feedback-service.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-04 17:27:58 +01:00
parent ed985d9500
commit 1b11ebc998

View file

@ -1,5 +1,9 @@
<script lang="ts">
import type { FeedbackService, Feedback } from '@manacore/shared-feedback-service';
import type {
FeedbackService,
Feedback,
CreateFeedbackInput,
} from '@manacore/shared-feedback-service';
import FeedbackForm from './FeedbackForm.svelte';
import FeedbackList from './FeedbackList.svelte';
@ -66,7 +70,7 @@
}
}
async function handleSubmit(input: { title?: string; feedbackText: string; category?: string }) {
async function handleSubmit(input: CreateFeedbackInput) {
isSubmitting = true;
try {
await feedbackService.createFeedback(input);