Skip to content

Commit

Permalink
Add link in top warning bar for superceded extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Feb 12, 2024
1 parent e093bb6 commit 42f9c7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/extension-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ const ExtensionDetailTemplate = ({
duplicates.map(duplicate => (
<SupersededWarning key={duplicate.groupId}>
{/^[aeiou]/i.test(duplicate.relationship) ? "An " : "A "}
{duplicate.relationship} version of this extension has been released
<Link to={`/${duplicate.slug}`}>{duplicate.relationship} version</Link> of this
extension has
been released
with the group id{" "}
<MavenCoordinate>{duplicate.groupId}</MavenCoordinate>
</SupersededWarning>
Expand Down

0 comments on commit 42f9c7d

Please sign in to comment.