Skip to content

Commit

Permalink
Display filtered stock tickers in title
Browse files Browse the repository at this point in the history
Display only the filtered stock ticker subset in the title; the full
list will be in the metadata table.

Closes #25
  • Loading branch information
brianlove committed Aug 8, 2023
1 parent 6523070 commit eb5b541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/gui-v2/src/components/DetailView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ const DetailView = ({
title={
<>
{companyData.name}
{companyData.market_list &&
<> <small className="stock-ticker">({companyData.market_list})</small></>
{companyData.market_filt && companyData.market_filt.length > 0 &&
<> <small className="stock-ticker">({companyData.market_filt.map(ticker => ticker.market_key).join(', ')})</small></>
}
</>
}
Expand Down
3 changes: 2 additions & 1 deletion web/gui-v2/src/components/DetailViewIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const DetailViewIntro = ({
{ title: "Country", data: data.country },
{ title: "Region", data: data.continent },
{ title: "Stage", data: data.stage },
{ title: "Groupings", data: "S&P 500" },
// { title: "Groupings", data: "S&P 500" },
{ title: "Stock tickers", data: data.market_list },
];

return (
Expand Down

0 comments on commit eb5b541

Please sign in to comment.