Fix addToast func parameters

This commit is contained in:
Tobias Hopp 2025-04-16 10:13:14 +02:00
parent 9eddb1b547
commit 1243cdc5ae

View File

@ -360,7 +360,7 @@ const FriendshipNetwork: React.FC = () => {
});
// Add toast notification
const addToast = (message: string, type = 'success') => {
const addToast = (message: string, type: 'error' | 'success' | 'warning' | 'info' = 'success') => {
const id = Date.now();
setToasts(prevToasts => [...prevToasts, { id, message, type, onClose: () => removeToast(id) }]);