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

@@ -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';