fix: TS type mismatch in mutation onSubmit handlers
This commit is contained in:
@@ -9,7 +9,7 @@ interface AddMoneyDialogProps {
|
||||
bank: PiggyBank | null
|
||||
open: boolean
|
||||
onOpenChange: (open: boolean) => void
|
||||
onSubmit: (bankId: number, amount: number, description?: string) => Promise<void>
|
||||
onSubmit: (bankId: number, amount: number, description?: string) => Promise<unknown>
|
||||
}
|
||||
|
||||
export function AddMoneyDialog({ bank, open, onOpenChange, onSubmit }: AddMoneyDialogProps) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Select } from './ui/select'
|
||||
|
||||
interface PiggyBankFormProps {
|
||||
categories: Category[]
|
||||
onSubmit: (data: { name: string; target_amount: number; currency: string; category_id: number | null }) => Promise<void>
|
||||
onSubmit: (data: { name: string; target_amount: number; currency: string; category_id: number | null }) => Promise<unknown>
|
||||
onCancel: () => void
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"root":["./src/app.tsx","./src/main.tsx","./src/types.ts","./src/components/addmoneydialog.tsx","./src/components/piggybankcard.tsx","./src/components/piggybankform.tsx","./src/components/transactionhistory.tsx","./src/components/ui/button.tsx","./src/components/ui/dialog.tsx","./src/components/ui/input.tsx","./src/components/ui/progress.tsx","./src/components/ui/select.tsx","./src/lib/api.ts","./src/lib/utils.ts"],"version":"5.6.3"}
|
||||
@@ -0,0 +1 @@
|
||||
{"root":["./vite.config.ts"],"version":"5.6.3"}
|
||||
Reference in New Issue
Block a user