Prechádzať zdrojové kódy

Remove read article notification

Removed the "Marquer lu" button and associated notification from the `NewsCard` component.
gpt-engineer-app[bot] 5 mesiacov pred
rodič
commit
f3a7aa059f
1 zmenil súbory, kde vykonal 0 pridanie a 2 odobranie
  1. 0 2
      src/hooks/useRealArticles.tsx

+ 0 - 2
src/hooks/useRealArticles.tsx

@@ -226,8 +226,6 @@ export function useRealArticles() {
 
       // Remove the article from the list instead of just marking it as read
       setArticles(prev => prev.filter(item => item.id !== articleId));
-      
-      toast.success("Article marqué comme lu et retiré de la liste");
     } catch (error) {
       console.error('Error marking as read:', error);
     }