Fix: Resolve Toast Type Error

The toast function was updated to correctly pass the 'id' property, resolving the TypeScript error.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:17:47 +00:00
parent 7b50054da4
commit f228410b83
9 changed files with 17 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from '
import { useForm } from 'react-hook-form';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import { useToast } from '@/hooks/use-toast';
import { useToast } from '@/hooks/useToast.wrapper';
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '@/components/ui/alert-dialog';
const passwordFormSchema = z.object({

View File

@@ -6,7 +6,7 @@ import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from '
import { useForm } from 'react-hook-form';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import { useToast } from '@/hooks/use-toast';
import { useToast } from '@/hooks/useToast.wrapper';
import { useNavigate } from 'react-router-dom';
import { useAuth } from '@/contexts/auth';

View File

@@ -2,7 +2,7 @@
import React from 'react';
import { Button } from '@/components/ui/button';
import { useNavigate } from 'react-router-dom';
import { useToast } from '@/hooks/use-toast';
import { useToast } from '@/hooks/useToast.wrapper';
type SaveSettingsButtonProps = {
onSave?: () => void;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { useToast } from '@/hooks/use-toast';
import { useToast } from '@/hooks/useToast.wrapper';
import SecuritySettingItem from './SecuritySettingItem';
import { SecuritySetting } from './types';