Skip to content

Commit

Permalink
feat: add total staked to instance card (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekaartajaya committed Feb 27, 2023
1 parent 500b8f3 commit a6692b6
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/components/molecules/CardInstance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,24 @@ export default function CardInstance(props: CardInstanceInterface) {

<div className="ml-4 w-full">
<ShowIf condition={type === InstanceType.ALL}>
<div className="text-2xl text-primary text-left">
{server?.detail?.name ?? 'Unknown Instance'}
</div>
<div className="text-sm text-darkGray text-left">
{server.detail?.categories.join(', ') ?? ''}
</div>
<div className="text-base text-left">
{server.detail?.description ?? ''}
<div className="flex justify-between">
<div className="w-4/5">
<div className="text-2xl text-primary text-left">
{server?.detail?.name ?? 'Unknown Instance'}
</div>
<div className="text-sm text-darkGray text-left">
{server.detail?.categories.join(', ') ?? ''}
</div>
<div className="text-base text-left">
{server.detail?.description ?? ''}
</div>
</div>
<div className="w-1/5 text-right">
Total Staked:{' '}
<span className={'text-primary'}>
{formatAmount(server?.stakedAmount ?? BN_ZERO)}
</span>
</div>
</div>

<div className="flex mt-2">
Expand Down

0 comments on commit a6692b6

Please sign in to comment.