From d1f7e549c27944746edc91ee65a387ec2ad37ea9 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 22 Oct 2025 12:33:05 +0200 Subject: [PATCH] fix: change bookmark URL from /me/reading-list to /me/bookmarks --- src/components/Bookmarks.tsx | 2 +- src/components/Me.tsx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Bookmarks.tsx b/src/components/Bookmarks.tsx index 2c2a9281..323823c9 100644 --- a/src/components/Bookmarks.tsx +++ b/src/components/Bookmarks.tsx @@ -64,7 +64,7 @@ const Bookmarks: React.FC = ({ // Extract tab from me routes const meTab = location.pathname === '/me' ? 'highlights' : location.pathname === '/me/highlights' ? 'highlights' : - location.pathname === '/me/reading-list' ? 'reading-list' : + location.pathname === '/me/bookmarks' ? 'bookmarks' : location.pathname.startsWith('/me/reads') ? 'reads' : location.pathname.startsWith('/me/links') ? 'links' : location.pathname === '/me/writings' ? 'writings' : 'highlights' diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 759132a3..2e60456b 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -42,7 +42,7 @@ interface MeProps { settings: UserSettings } -type TabType = 'highlights' | 'reading-list' | 'reads' | 'links' | 'writings' +type TabType = 'highlights' | 'bookmarks' | 'reads' | 'links' | 'writings' // Valid reading progress filters const VALID_FILTERS: ReadingProgressFilterType[] = ['all', 'unopened', 'started', 'reading', 'completed', 'highlighted', 'archive'] @@ -229,9 +229,9 @@ const Me: React.FC = ({ if (!viewingPubkey || !activeAccount) return setLoadedTabs(prev => { - const hasBeenLoaded = prev.has('reading-list') + const hasBeenLoaded = prev.has('bookmarks') if (!hasBeenLoaded) setLoading(true) - return new Set(prev).add('reading-list') + return new Set(prev).add('bookmarks') }) // Always turn off loading after a tick @@ -334,7 +334,7 @@ const Me: React.FC = ({ case 'writings': loadWritingsTab() break - case 'reading-list': + case 'bookmarks': loadReadingListTab() break case 'reads': @@ -609,7 +609,7 @@ const Me: React.FC = ({ ) - case 'reading-list': + case 'bookmarks': if (showSkeletons) { return (
@@ -860,9 +860,9 @@ const Me: React.FC = ({ Highlights