瀏覽代碼

Remove read article notification

Removed the "Marquer lu" button and associated notification from the `NewsCard` component.
gpt-engineer-app[bot] 5 月之前
父節點
當前提交
f3a7aa059f
共有 1 個文件被更改,包括 0 次插入2 次删除
  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
       // Remove the article from the list instead of just marking it as read
       setArticles(prev => prev.filter(item => item.id !== articleId));
       setArticles(prev => prev.filter(item => item.id !== articleId));
-      
-      toast.success("Article marqué comme lu et retiré de la liste");
     } catch (error) {
     } catch (error) {
       console.error('Error marking as read:', error);
       console.error('Error marking as read:', error);
     }
     }