From 827bbabe358cc0540ed81a1cacff9e99143cc57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Gu=CC=88ell=20Segarra?= Date: Mon, 2 Jun 2025 12:55:03 +0200 Subject: [PATCH] feat: use new notification system https://github.com/gisce/webclient/issues/2217 https://github.com/gisce/webclient/issues/2216 --- src/hooks/useErrorNotification.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useErrorNotification.tsx b/src/hooks/useErrorNotification.tsx index ca1c28da8..dfbf17703 100644 --- a/src/hooks/useErrorNotification.tsx +++ b/src/hooks/useErrorNotification.tsx @@ -3,7 +3,7 @@ import { Icon, NotificationButton, NotificationType, - useNotification, + useNotificationContext, } from "@gisce/react-formiga-components"; import { Interweave } from "interweave"; import { Modal, Button, Space, Row } from "antd"; @@ -26,7 +26,7 @@ export const useErrorNotification = ({ }: { onButtonAction?: (payload: any) => void; } = {}) => { - const { open, destroy } = useNotification(); + const { open, destroy } = useNotificationContext(); const showErrorNotification = (error: ShowErrorNotificationArg) => { // Type guard for Notification-like error