Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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