diff options
author | Eric Bailey <git@esb.lol> | 2024-07-25 18:07:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 18:07:07 -0500 |
commit | e7b485f185913dd52f807c232b3b9c9a580ae33d (patch) | |
tree | 8c4a786c89aa911e62611e10967c0b4aa9e0ad1a /src | |
parent | ac1538baad6acc6a8af6ee788f0603ae45f2d963 (diff) | |
download | voidsky-e7b485f185913dd52f807c232b3b9c9a580ae33d.tar.zst |
Add labels in list card (#4837)
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ListCard.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/ListCard.tsx b/src/components/ListCard.tsx index c0e0d0e25..0ed27cf50 100644 --- a/src/components/ListCard.tsx +++ b/src/components/ListCard.tsx @@ -44,7 +44,7 @@ type Props = { export function Default(props: Props) { const {view, showPinButton} = props return ( - <Link label={view.name} {...props}> + <Link {...props}> <Outer> <Header> <Avatar src={view.avatar} /> @@ -67,7 +67,7 @@ export function Link({ view, children, ...props -}: Props & Omit<LinkProps, 'to'>) { +}: Props & Omit<LinkProps, 'to' | 'label'>) { const queryClient = useQueryClient() const href = React.useMemo(() => { @@ -79,7 +79,7 @@ export function Link({ }, [view, queryClient]) return ( - <InternalLink to={href} {...props}> + <InternalLink label={view.name} to={href} {...props}> {children} </InternalLink> ) |