diff options
author | dan <dan.abramov@gmail.com> | 2025-01-02 17:27:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 17:27:15 +0000 |
commit | c11a90124cbe67cc03a126c6a62d6546ffe7ffcf (patch) | |
tree | 578f3093eacb02f824fee90f788a5fcd27350d75 | |
parent | 9f075b13405c7711edbd9309ab521738b74a50c5 (diff) | |
download | voidsky-c11a90124cbe67cc03a126c6a62d6546ffe7ffcf.tar.zst |
Fix key issue in trending topics (#7329)
-rw-r--r-- | src/components/interstitials/Trending.tsx | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/components/interstitials/Trending.tsx b/src/components/interstitials/Trending.tsx index 1da361ef7..a217a7da2 100644 --- a/src/components/interstitials/Trending.tsx +++ b/src/components/interstitials/Trending.tsx @@ -59,26 +59,24 @@ export function Inner() { ) : !trending?.topics ? null : ( <> {trending.topics.map(topic => ( - <> - <TrendingTopicLink - key={topic.link} - topic={topic} - onPress={() => { - logEvent('trendingTopic:click', {context: 'interstitial'}) - }}> - <View style={[a.py_lg]}> - <Text - style={[ - t.atoms.text, - a.text_sm, - a.font_bold, - {opacity: 0.7}, // NOTE: we use opacity 0.7 instead of a color to match the color of the home pager tab bar - ]}> - {topic.topic} - </Text> - </View> - </TrendingTopicLink> - </> + <TrendingTopicLink + key={topic.link} + topic={topic} + onPress={() => { + logEvent('trendingTopic:click', {context: 'interstitial'}) + }}> + <View style={[a.py_lg]}> + <Text + style={[ + t.atoms.text, + a.text_sm, + a.font_bold, + {opacity: 0.7}, // NOTE: we use opacity 0.7 instead of a color to match the color of the home pager tab bar + ]}> + {topic.topic} + </Text> + </View> + </TrendingTopicLink> ))} <Button label={_(msg`Hide trending topics`)} |