Skip to content

Commit

Permalink
Update MobileTable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cardanians committed Oct 17, 2020
1 parent b50e25d commit 1f0575a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/MobileTable.js
Expand Up @@ -7,6 +7,7 @@ import StakingPoolCard from './StakingPoolCard';
import PoolSizeCard from './PoolSizeCard';
import CostsCard from './CostsCard';
import PledgeCard from './PledgeCard';
import CardRoa from './CardRoa';
import { roundTwoDecimal, formatBigNumber, roundOneDecimal, formatCostLabel } from '../utils/utils';
import Button from './common/Button';
import AverageCostCard from './AverageCostCard';
Expand Down Expand Up @@ -74,6 +75,12 @@ function MobileTable({ data, delegateFunction, status, selectedIdPools }: Props)
(Object.entries(data): any).map(([, value]) => (
<CardMobile key={value.id}>
<StakingPoolCard id={value.id} avatar={value.pool_pic} fullname={value.fullname} />
<CardRoa
roa={value.roa}
data={value.hist_roa}
description={"Estimated ROA: "}
/>

<WrapperContent style={{ display: 'flex' }}>
<div className="item">
<div className="label">Pool Size</div>
Expand All @@ -96,7 +103,7 @@ function MobileTable({ data, delegateFunction, status, selectedIdPools }: Props)
</div>
<div className="item">
<div className="label">Pledge</div>
<PledgeCard value={value.pledge} />
<PledgeCard value={value.pledge} real={value.pledge_real} />
</div>
</WrapperContent>
<div>
Expand Down

0 comments on commit 1f0575a

Please sign in to comment.