Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #269 from paritytech/tbaut-overlay-balances
Browse files Browse the repository at this point in the history
Hide token balance when syncing
  • Loading branch information
Tbaut authored Nov 26, 2018
2 parents e81e2c7 + 36982bd commit 57efe14
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
30 changes: 16 additions & 14 deletions packages/fether-react/src/Tokens/TokensList/TokensList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// SPDX-License-Identifier: BSD-3-Clause

import React, { Component } from 'react';

import RequireHealth from '../../RequireHealthOverlay';
import TokenBalance from './TokenBalance';
import withTokens from '../../utils/withTokens';

Expand All @@ -17,20 +17,22 @@ class TokensList extends Component {
const shownArray = tokensArray.length ? tokensArray : [{}];

return (
<div className='window_content'>
<div className='box -scroller'>
<ul className='list -padded'>
{shownArray.map((
token,
index // With empty tokens, the token.address is not defined, so we prefix with index
) => (
<li key={`${index}-${token.address}`}>
<TokenBalance token={token} />
</li>
))}
</ul>
<RequireHealth require='sync'>
<div className='window_content'>
<div className='box -scroller'>
<ul className='list -padded'>
{shownArray.map((
token,
index // With empty tokens, the token.address is not defined, so we prefix with index
) => (
<li key={`${index}-${token.address}`}>
<TokenBalance token={token} />
</li>
))}
</ul>
</div>
</div>
</div>
</RequireHealth>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
right: 0;
bottom: 0;
height: auto;
background: $chrome;
z-index: 1;

display: flex;
align-items: center;
Expand Down Expand Up @@ -41,7 +43,7 @@

p {
color: $grey;
font-size: .8rem;
font-size: 0.8rem;
line-height: 1.4;
}
}
Expand Down

0 comments on commit 57efe14

Please sign in to comment.