From 2a8a3dccb6075bd9b50abe026cafe98242c0436f Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Fri, 22 May 2026 14:16:58 -0400 Subject: [PATCH] fix: resolve global search build errors Co-authored-by: Cursor --- desktop/src/features/search/ui/SearchDialog.tsx | 8 +++++++- desktop/src/features/workspaces/ui/WorkspaceSwitcher.tsx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/desktop/src/features/search/ui/SearchDialog.tsx b/desktop/src/features/search/ui/SearchDialog.tsx index 65eb293cb..8bb75accc 100644 --- a/desktop/src/features/search/ui/SearchDialog.tsx +++ b/desktop/src/features/search/ui/SearchDialog.tsx @@ -85,6 +85,12 @@ type SearchDialogProps = { onOpenUser: (pubkey: string) => void; }; +type SearchResultSection = { + count: number; + results: SearchResult[]; + title: string; +}; + export function SearchDialog({ channels, currentPubkey, @@ -149,7 +155,7 @@ export function SearchDialog({ }) .slice(0, 5); }, [channels, debouncedQuery]); - const sections = React.useMemo( + const sections = React.useMemo( () => [ { diff --git a/desktop/src/features/workspaces/ui/WorkspaceSwitcher.tsx b/desktop/src/features/workspaces/ui/WorkspaceSwitcher.tsx index 9a72cf81a..636291044 100644 --- a/desktop/src/features/workspaces/ui/WorkspaceSwitcher.tsx +++ b/desktop/src/features/workspaces/ui/WorkspaceSwitcher.tsx @@ -111,7 +111,7 @@ function RelayIcon({ }) { const iconUrl = relayIconUrl(workspace?.relayUrl); const fallbackIconUrl = "/sprout.svg"; - const [src, setSrc] = React.useState( + const [src, setSrc] = React.useState( associatedIconUrl ?? iconUrl ?? fallbackIconUrl, );