Skip to content

Commit

Permalink
make trending buttons pressable scale (#7160)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius authored Dec 18, 2024
1 parent e7b015f commit 4097fe0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/TrendingTopics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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>
)
Expand Down

0 comments on commit 4097fe0

Please sign in to comment.