Skip to content

Commit

Permalink
Add labels in list card (#4837)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Jul 25, 2024
1 parent ac1538b commit e7b485f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
Expand All @@ -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(() => {
Expand All @@ -79,7 +79,7 @@ export function Link({
}, [view, queryClient])

return (
<InternalLink to={href} {...props}>
<InternalLink label={view.name} to={href} {...props}>
{children}
</InternalLink>
)
Expand Down

0 comments on commit e7b485f

Please sign in to comment.