fix: resolve global search build errors

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Thomas Petersen
2026-05-22 14:16:58 -04:00
co-authored by Cursor
parent 5108762d12
commit 2a8a3dccb6
2 changed files with 8 additions and 2 deletions
@@ -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<SearchResultSection[]>(
() =>
[
{
@@ -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<string | null>(
associatedIconUrl ?? iconUrl ?? fallbackIconUrl,
);