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:
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user