Add new search results tab for starter packs (#11226)

This commit is contained in:
DS Boyce
2026-07-21 13:18:12 -07:00
committed by GitHub
parent 26143c1a48
commit 86f0bedfbe
6 changed files with 226 additions and 12 deletions
@@ -26,8 +26,10 @@ import * as bsky from '#/types/bsky'
export function StarterPackCard({
view,
onPress,
}: {
view: AppBskyGraphDefs.StarterPackView
onPress?: () => void
}) {
const t = useTheme()
const {_} = useLingui()
@@ -55,7 +57,10 @@ export function StarterPackCard({
to={link.to}
label={link.label}
onHoverIn={link.precache}
onPress={link.precache}>
onPress={() => {
link.precache()
onPress?.()
}}>
{s => (
<>
<SubtleHover hover={s.hovered || s.pressed} />
@@ -111,7 +116,10 @@ export function StarterPackCard({
to={link.to}
label={link.label}
onHoverIn={link.precache}
onPress={link.precache}
onPress={() => {
link.precache()
onPress?.()
}}
variant="solid"
color="secondary"
size="small"