diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-12-18 19:48:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 19:48:24 +0000 |
commit | 4097fe07c5abca2689436956636ac9ab4a0e663a (patch) | |
tree | ac7c7b0cf056e7974ced02a6d8d834115c6de530 /src/components | |
parent | e7b015f53fd777654326ed0b30174c09673312ef (diff) | |
download | voidsky-4097fe07c5abca2689436956636ac9ab4a0e663a.tar.zst |
make trending buttons pressable scale (#7160)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/TrendingTopics.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/TrendingTopics.tsx b/src/components/TrendingTopics.tsx index 6881f24bd..271d83aa6 100644 --- a/src/components/TrendingTopics.tsx +++ b/src/components/TrendingTopics.tsx @@ -4,13 +4,14 @@ import {AtUri} from '@atproto/api' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {PressableScale} from '#/lib/custom-animations/PressableScale' // import {makeProfileLink} from '#/lib/routes/links' // import {feedUriToHref} from '#/lib/strings/url-helpers' // import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag' // import {CloseQuote_Filled_Stroke2_Corner0_Rounded as Quote} from '#/components/icons/Quote' // import {UserAvatar} from '#/view/com/util/UserAvatar' import type {TrendingTopic} from '#/state/queries/trending/useTrendingTopics' -import {atoms as a, useTheme, ViewStyleProp} from '#/alf' +import {atoms as a, native, useTheme, ViewStyleProp} from '#/alf' import {Link as InternalLink, LinkProps} from '#/components/Link' import {Text} from '#/components/Typography' @@ -138,7 +139,11 @@ export function TrendingTopicLink({ const topic = useTopic(raw) return ( - <InternalLink label={topic.label} to={topic.url} {...rest}> + <InternalLink + label={topic.label} + to={topic.url} + PressableComponent={native(PressableScale)} + {...rest}> {children} </InternalLink> ) |