Fix TypeScript errors

Addresses TypeScript errors related to toast implementation and type definitions.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:15:27 +00:00
parent 7ab79d125e
commit 7b50054da4
6 changed files with 23 additions and 17 deletions

View File

@@ -83,7 +83,6 @@ const ExpenseForm: React.FC<ExpenseFormProps> = ({ onSubmit, onCancel, isSubmitt
<ExpenseCategorySelector
value={field.value}
onValueChange={(value) => field.onChange(value)}
disabled={isSubmitting}
/>
</FormItem>
)}

View File

@@ -1,6 +1,5 @@
import React, { useState } from 'react';
import { Trash2 } from 'lucide-react';
import { Trash2, Loader2 } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { useToast } from '@/hooks/useToast.wrapper';
import { useNavigate } from 'react-router-dom';

View File

@@ -1,4 +1,5 @@
import { useToast, toast } from "@/hooks/use-toast";
// useToast.wrapper.ts에서 수정된 toast 함수를 사용하도록 리디렉션
import { useToast, toast } from "@/hooks/useToast.wrapper";
export { useToast, toast };