diff --git a/app/soapbox/features/crypto_donate/components/crypto_address.tsx b/app/soapbox/features/crypto_donate/components/crypto_address.tsx index d84962206..716e4eee5 100644 --- a/app/soapbox/features/crypto_donate/components/crypto_address.tsx +++ b/app/soapbox/features/crypto_donate/components/crypto_address.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { useDispatch } from 'react-redux'; import { openModal } from 'soapbox/actions/modals'; -import Icon from 'soapbox/components/icon'; +import { Text, Icon, Stack, HStack } from 'soapbox/components/ui'; import { CopyableInput } from 'soapbox/features/forms'; import { getExplorerUrl } from '../utils/block_explorer'; @@ -30,28 +30,37 @@ const CryptoAddress: React.FC = (props): JSX.Element => { const explorerUrl = getExplorerUrl(ticker, address); return ( -
-
+ + -
{title || ticker.toUpperCase()}
- -
- {note &&
{note}
} + + {explorerUrl && ( + + + + )} + + + + {note && ( + {note} + )} +
-
+ ); }; diff --git a/app/soapbox/features/crypto_donate/components/crypto_donate_panel.tsx b/app/soapbox/features/crypto_donate/components/crypto_donate_panel.tsx index 52cbcaa74..073852a8b 100644 --- a/app/soapbox/features/crypto_donate/components/crypto_donate_panel.tsx +++ b/app/soapbox/features/crypto_donate/components/crypto_donate_panel.tsx @@ -34,13 +34,17 @@ const CryptoDonatePanel: React.FC = ({ limit = 3 }): JSX.Ele - {hasMore && - - } + {hasMore && ( + + + + + + )} ); }; diff --git a/app/soapbox/features/crypto_donate/components/site_wallet.tsx b/app/soapbox/features/crypto_donate/components/site_wallet.tsx index 4814d8342..af5964796 100644 --- a/app/soapbox/features/crypto_donate/components/site_wallet.tsx +++ b/app/soapbox/features/crypto_donate/components/site_wallet.tsx @@ -1,6 +1,7 @@ import { trimStart } from 'lodash'; import React from 'react'; +import { Stack } from 'soapbox/components/ui'; import { useSoapboxConfig } from 'soapbox/hooks'; import CryptoAddress from './crypto_address'; @@ -28,7 +29,7 @@ const SiteWallet: React.FC = ({ limit }): JSX.Element => { const coinList = typeof limit === 'number' ? addresses.take(limit) : addresses; return ( -
+ {coinList.map(coin => ( = ({ limit }): JSX.Element => { note={coin.get('note')} /> ))} -
+ ); }; diff --git a/app/soapbox/features/forms/index.js b/app/soapbox/features/forms/index.js index 7c2268794..5cc640a25 100644 --- a/app/soapbox/features/forms/index.js +++ b/app/soapbox/features/forms/index.js @@ -303,7 +303,7 @@ export class CopyableInput extends ImmutablePureComponent { return (
-