mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix: resolve global search build errors
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
5108762d12
commit
2a8a3dccb6
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user