Restore /crypto/donate page
This commit is contained in:
parent
c8c2f40e38
commit
13c4948ad2
3 changed files with 6 additions and 4 deletions
|
@ -18,15 +18,17 @@ const normalizeAddress = (address: Address): Address => {
|
|||
};
|
||||
|
||||
interface ISiteWallet {
|
||||
limit: number,
|
||||
limit?: number,
|
||||
}
|
||||
|
||||
const SiteWallet: React.FC<ISiteWallet> = ({ limit }): JSX.Element => {
|
||||
const addresses: ImmutableList<Address> = useSoapboxConfig().get('cryptoAddresses');
|
||||
const coinList = addresses.map(normalizeAddress).take(limit);
|
||||
const addresses: ImmutableList<Address> =
|
||||
useSoapboxConfig().get('cryptoAddresses').map(normalizeAddress);
|
||||
|
||||
const coinList = typeof limit === 'number' ? addresses.take(limit) : addresses;
|
||||
|
||||
return (
|
||||
<div className='site-wallet'>
|
||||
<div>
|
||||
{coinList.map(coin => (
|
||||
<CryptoAddress
|
||||
key={coin.get('ticker')}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue