Skip to content

Commit

Permalink
Added overall return for portfolio item
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelometal committed Aug 8, 2020
1 parent abf4de2 commit b024ce7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dashboard/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const headCells = [
{ id: "commission", numeric: true, label: "Commission" },
{ id: "averagePrice", numeric: true, label: "Avg Price" },
{ id: "gain", numeric: true, label: "Gain" },
{ id: "overallReturn", numeric: true, label: "Overall Return %" },
{ id: "change", numeric: true, label: "Change %" },
{ id: "lastPrice", numeric: true, label: "Last Price" },
{ id: "closingPrice", numeric: true, label: "Closing Price" },
Expand Down Expand Up @@ -211,6 +212,7 @@ const EnhancedTable = ({ data, itemType, perPage }) => {
<MoneyRow color="gray">{row.commission}</MoneyRow>
<MoneyRow color="gray">{row.averagePrice}</MoneyRow>
<MoneyRow>{row.gain}</MoneyRow>
<FloatRow>{row.overallReturn}</FloatRow>
<FloatRow>{row.change}</FloatRow>
<MoneyRow color="orange">{row.lastPrice}</MoneyRow>
<MoneyRow color="blue">{row.closingPrice}</MoneyRow>
Expand Down

0 comments on commit b024ce7

Please sign in to comment.