presents wallet info but hides newAddress

This commit is contained in:
jessop 2019-09-11 12:14:37 -04:00 committed by Sean Yesmunt
parent 65420f6967
commit 06bb1e373f
2 changed files with 12 additions and 9 deletions

View file

@ -56,7 +56,14 @@ class WalletAddress extends React.PureComponent<Props, State> {
<CopyableText label={__('Your Address')} copyable={receiveAddress} snackMessage={__('Address copied.')} />
<div className="card__actions">
<Button button="inverse" label={__('Get New Address')} onClick={getNewAddress} disabled={gettingNewAddress} />
{!IS_WEB && (
<Button
button="inverse"
label={__('Get New Address')}
onClick={getNewAddress}
disabled={gettingNewAddress}
/>
)}
<Button button="link" label={showQR ? __('Hide QR code') : __('Show QR code')} onClick={this.toggleQR} />
</div>

View file

@ -4,17 +4,13 @@ import WalletSend from 'component/walletSend';
import WalletAddress from 'component/walletAddress';
import TransactionListRecent from 'component/transactionListRecent';
import Page from 'component/page';
import UnsupportedOnWeb from 'component/common/unsupported-on-web';
const WalletPage = () => (
<Page>
<UnsupportedOnWeb />
<div className={IS_WEB && 'card--disabled'}>
<WalletBalance />
<WalletSend />
<WalletAddress />
<TransactionListRecent />
</div>
<WalletBalance />
<WalletSend />
<WalletAddress />
<TransactionListRecent />
</Page>
);