Skip to content

Commit

Permalink
Move labels inside <a>
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Mar 10, 2023
1 parent 627225d commit 4273ece
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Result/DatahubCardItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ const DatahubCardItem = (props) => {
<>
<Link to={result.href} title={result.title}>
{result.title}
{result.isNew && <Label className="new-item">New</Label>}
{result.isExpired && (
<Label className="archived-item">Archived</Label>
)}
</Link>
{result.isNew && <Label className="new-item">New</Label>}
{result.isExpired && <Label className="archived-item">Archived</Label>}
</>
),
description: <ResultContext {...props} />,
Expand Down

0 comments on commit 4273ece

Please sign in to comment.