Merge pull request #2573 from luismsousa/feat/notifications-delete

Notification channel Delete:
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-07-07 15:25:55 -07:00
commit 961c398690
4 files changed
+51 -17

No files matched your search

+4 -2
View File
@@ -65,14 +65,16 @@ const useDeleteNotification = () => {
const [error, setError] = useState(null);
const { t } = useTranslation();
const deleteNotification = async (id, triggerUpdate) => {
const deleteNotification = async (id, callback) => {
try {
setIsLoading(true);
await networkService.deleteNotificationById({ id });
createToast({
body: t("notifications.delete.success"),
});
triggerUpdate();
if (callback) {
callback();
}
} catch (error) {
setError(error);
createToast({