mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:21:08 +02:00
🐛 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:
parent
ed985d9500
commit
1b11ebc998
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue