Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
DEVPROD-941: linkify user name on version metadata panel
Browse files Browse the repository at this point in the history
  • Loading branch information
bthood committed Nov 7, 2023
1 parent c8cb545 commit af8aa78
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pages/version/Metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
getCommitQueueRoute,
getProjectPatchesRoute,
getTriggerRoute,
getUserPatchesRoute,
getVersionRoute,
} from "constants/routes";
import { VersionQuery } from "gql/generated/types";
Expand Down Expand Up @@ -117,7 +118,15 @@ export const Metadata: React.FC<Props> = ({ loading, version }) => {
</span>
</MetadataItem>
)}
<MetadataItem>{`Submitted by: ${author}`}</MetadataItem>
<MetadataItem>
Submitted by:{" "}
<StyledRouterLink
to={getUserPatchesRoute(author)}
data-cy="user-patches-link"
>
{author}
</StyledRouterLink>
</MetadataItem>
{isPatch ? (
<MetadataItem>
Base commit:{" "}
Expand Down

0 comments on commit af8aa78

Please sign in to comment.