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, );