From d3ee995221964bf19178c11656ba9b7be5f82b1b Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 00:53:26 +0200 Subject: [PATCH] feat: wire Support component into Bookmarks with /support detection --- src/components/Bookmarks.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Bookmarks.tsx b/src/components/Bookmarks.tsx index 80280db2..bddc1d6e 100644 --- a/src/components/Bookmarks.tsx +++ b/src/components/Bookmarks.tsx @@ -16,6 +16,7 @@ import { useOfflineSync } from '../hooks/useOfflineSync' import ThreePaneLayout from './ThreePaneLayout' import Explore from './Explore' import Me from './Me' +import Support from './Support' import { classifyHighlights } from '../utils/highlightClassification' export type ViewMode = 'compact' | 'cards' | 'large' @@ -42,6 +43,7 @@ const Bookmarks: React.FC = ({ relayPool, onLogout }) => { const showExplore = location.pathname.startsWith('/explore') const showMe = location.pathname.startsWith('/me') const showProfile = location.pathname.startsWith('/p/') + const showSupport = location.pathname === '/support' // Extract tab from explore routes const exploreTab = location.pathname === '/explore/writings' ? 'writings' : 'highlights' @@ -250,6 +252,7 @@ const Bookmarks: React.FC = ({ relayPool, onLogout }) => { showExplore={showExplore} showMe={showMe} showProfile={showProfile} + showSupport={showSupport} bookmarks={bookmarks} bookmarksLoading={bookmarksLoading} viewMode={viewMode} @@ -313,6 +316,9 @@ const Bookmarks: React.FC = ({ relayPool, onLogout }) => { profile={showProfile && profilePubkey ? ( relayPool ? : null ) : undefined} + support={showSupport ? ( + relayPool ? : null + ) : undefined} toastMessage={toastMessage ?? undefined} toastType={toastType} onClearToast={clearToast}