Skip to content

Commit

Permalink
Restore stock tickers in detailed metadata modal
Browse files Browse the repository at this point in the history
Restore the stock ticker rows as part of the detailed metadata modal
(instead of the summary table that it was originally part of).
  • Loading branch information
brianlove committed Jun 3, 2024
1 parent 867e333 commit 43d6426
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions web/gui-v2/src/components/DetailViewMoreMetadataDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ const styles = {
display: flex;
flex-direction: column;
`,
stockList: css`
list-style: none;
margin: 0;
`,
dialogBottom: css`
display: flex;
justify-content: center;
Expand Down Expand Up @@ -79,6 +83,17 @@ const MoreMetadataDialog = ({
{ title: 'Stage', value: data.stage },
];

if ( data.market && data.market.length > 0 ) {
metadata.push({
title: "Stock tickers",
value: (
<ul css={styles.stockList}>
{data.market.map((e) => <li key={e.text}><ExternalLink href={e.url}>{e.text}</ExternalLink></li>)}
</ul>
),
});
}

const handleClose = () => {
updateIsOpen(false);
};
Expand Down

0 comments on commit 43d6426

Please sign in to comment.