From 66f5e3a8330faf616e36db56e90c365637bae722 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 12 Feb 2025 21:34:21 +0000 Subject: Special treatment for recommended starter packs (#7706) * special treatment for recommended starter packs * update subtitle when SPs in recommended * fix item height --- src/components/TrendingTopics.tsx | 90 ++++++++++++++++++++++----------------- 1 file changed, 50 insertions(+), 40 deletions(-) (limited to 'src/components/TrendingTopics.tsx') diff --git a/src/components/TrendingTopics.tsx b/src/components/TrendingTopics.tsx index 271d83aa6..a1de5d490 100644 --- a/src/components/TrendingTopics.tsx +++ b/src/components/TrendingTopics.tsx @@ -12,6 +12,7 @@ import {PressableScale} from '#/lib/custom-animations/PressableScale' // import {UserAvatar} from '#/view/com/util/UserAvatar' import type {TrendingTopic} from '#/state/queries/trending/useTrendingTopics' import {atoms as a, native, useTheme, ViewStyleProp} from '#/alf' +import {StarterPack as StarterPackIcon} from '#/components/icons/StarterPack' import {Link as InternalLink, LinkProps} from '#/components/Link' import {Text} from '#/components/Typography' @@ -24,9 +25,8 @@ export function TrendingTopic({ const topic = useTopic(raw) const isSmall = size === 'small' - // const hasAvi = topic.type === 'feed' || topic.type === 'profile' - // const aviSize = isSmall ? 16 : 20 - // const iconSize = isSmall ? 16 : 20 + const hasIcon = topic.type === 'starter-pack' && !isSmall + const iconSize = 20 return ( + {hasIcon && topic.type === 'starter-pack' && ( + + )} + {/* - - {topic.type === 'tag' ? ( - - ) : topic.type === 'topic' ? ( - - ) : topic.type === 'feed' ? ( - - ) : ( - - )} - + + {topic.type === 'tag' ? ( + + ) : topic.type === 'topic' ? ( + + ) : topic.type === 'feed' ? ( + + ) : ( + + )} + */}