diff options
author | Eric Bailey <git@esb.lol> | 2024-07-25 18:07:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 18:07:42 -0500 |
commit | 35165e3d9b150a57e19194e67321ddcb7815bfa7 (patch) | |
tree | daf46e617b544773c1de78b2b8fe3c259e6884a5 /src/components/FeedCard.tsx | |
parent | 1d827cebe4356579d8e9f939e17707b9033e3e43 (diff) | |
download | voidsky-35165e3d9b150a57e19194e67321ddcb7815bfa7.tar.zst |
Add labels in feed card (#4836)
Diffstat (limited to 'src/components/FeedCard.tsx')
-rw-r--r-- | src/components/FeedCard.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/FeedCard.tsx b/src/components/FeedCard.tsx index 82d675a8e..e6d664cfd 100644 --- a/src/components/FeedCard.tsx +++ b/src/components/FeedCard.tsx @@ -40,7 +40,7 @@ type Props = { export function Default(props: Props) { const {view} = props return ( - <Link label={view.displayName} {...props}> + <Link {...props}> <Outer> <Header> <Avatar src={view.avatar} /> @@ -58,7 +58,7 @@ export function Link({ view, children, ...props -}: Props & Omit<LinkProps, 'to'>) { +}: Props & Omit<LinkProps, 'to' | 'label'>) { const queryClient = useQueryClient() const href = React.useMemo(() => { @@ -70,7 +70,11 @@ export function Link({ }, [view, queryClient]) return ( - <InternalLink to={href} style={[a.flex_col]} {...props}> + <InternalLink + label={view.displayName} + to={href} + style={[a.flex_col]} + {...props}> {children} </InternalLink> ) |