Restore /crypto/donate page

This commit is contained in:
Alex Gleason 2022-03-25 15:16:05 -05:00
parent c8c2f40e38
commit 13c4948ad2
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 6 additions and 4 deletions

View file

@ -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.