Skip to content

Commit

Permalink
feat: add sources to interaction page
Browse files Browse the repository at this point in the history
feat: add sources to interaction page
  • Loading branch information
katiestahl authored Oct 10, 2023
2 parents cd25b12 + 56e78fe commit 60f9644
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,30 @@ export const InteractionRecord: React.FC = () => {
</Box>
),
},
{
name: 'Sources',
sectionContent: (
<Box className="box-content">
<Table>
<TableBody>
{data?.interaction?.sources.length
? data?.interaction?.sources?.map(
(source: any, index: number) => {
return (
<TableRow key={index}>
<TableCell className="attribute-name">
{source.fullName}
</TableCell>
</TableRow>
);
}
)
: noData}
</TableBody>
</Table>
</Box>
),
},
];

return (
Expand Down
3 changes: 3 additions & 0 deletions client/src/hooks/queries/useGetInteractionRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const getInteractionRecordQuery = gql`
pmid
citation
}
sources {
fullName
}
interactionAttributes {
name
value
Expand Down

0 comments on commit 60f9644

Please sign in to comment.