Skip to content

Commit

Permalink
[Platform] Add Uniprot id to Uniprot description link (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmcn authored Jul 3, 2024
1 parent bf8af85 commit 31c4aeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sections/src/variant/UniProtVariants/Description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ type DescriptionProps = {
};

function Description({ variantId, data }: DescriptionProps) {
const { targetFromSourceId } = data.variant.uniProtVariants[0];
return (
<>
Literature-based curation associating <strong>{variantId}</strong>{" "} to a disease/phenotype. Source:{" "}
<Link external to={identifiersOrgLink("uniprot", data.variant.uniProtVariants[0].targetFromSourceId)}>
UniProt
<Link external to={identifiersOrgLink("uniprot", targetFromSourceId)}>
UniProt ({targetFromSourceId})
</Link>
</>
);
Expand Down

0 comments on commit 31c4aeb

Please sign in to comment.