From a5daa8b56c96989db4ab3338ebb7fc8c2b00f09a Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 12:02:15 +0200 Subject: [PATCH] fix: remove incorrect useSettings hook usage in Me component --- src/components/Me.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 631d26a0..3b49ba48 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -10,7 +10,6 @@ import { fetchBookmarks } from '../services/bookmarkService' import { fetchReadArticles, ReadArticle } from '../services/libraryService' import { Bookmark } from '../types/bookmarks' import AuthorCard from './AuthorCard' -import { useSettings } from '../hooks/useSettings' interface MeProps { relayPool: RelayPool @@ -20,7 +19,6 @@ type TabType = 'highlights' | 'reading-list' | 'library' const Me: React.FC = ({ relayPool }) => { const activeAccount = Hooks.useActiveAccount() - const settings = useSettings() const [activeTab, setActiveTab] = useState('highlights') const [highlights, setHighlights] = useState([]) const [bookmarks, setBookmarks] = useState([]) @@ -51,7 +49,7 @@ const Me: React.FC = ({ relayPool }) => { // Fetch bookmarks using callback pattern try { - await fetchBookmarks(relayPool, activeAccount, setBookmarks, settings) + await fetchBookmarks(relayPool, activeAccount, setBookmarks) } catch (err) { console.warn('Failed to load bookmarks:', err) setBookmarks([]) @@ -65,7 +63,7 @@ const Me: React.FC = ({ relayPool }) => { } loadData() - }, [relayPool, activeAccount, settings]) + }, [relayPool, activeAccount]) const handleHighlightDelete = (highlightId: string) => { setHighlights(prev => prev.filter(h => h.id !== highlightId))