diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 612eb5cc12..94aab2d961 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -48,7 +48,7 @@ import { SearchProfileCard, } from '#/view/shell/desktop/Search' import {useSetMinimalShellMode, useSetDrawerSwipeDisabled} from '#/state/shell' -import {isWeb} from '#/platform/detection' +import {isNative, isWeb} from '#/platform/detection' import {listenSoftReset} from '#/state/events' import {s} from '#/lib/styles' @@ -626,7 +626,12 @@ export function SearchScreen( keyboardDismissMode="on-drag"> diff --git a/src/view/shell/desktop/Search.tsx b/src/view/shell/desktop/Search.tsx index c24940b522..4a94837338 100644 --- a/src/view/shell/desktop/Search.tsx +++ b/src/view/shell/desktop/Search.tsx @@ -35,14 +35,36 @@ export const MATCH_HANDLE = export function SearchLinkCard({ label, to, + onPress, style, }: { label: string - to: string + to?: string + onPress?: () => void style?: ViewStyle }) { const pal = usePalette('default') + const inner = ( + + + {label} + + + ) + + if (onPress) { + return ( + + {inner} + + ) + } + return (