|
|
|
@ -16,10 +16,11 @@ import colors from 'config/colors';
|
|
|
|
|
import { CONTEXT_DEVICE } from 'actions/constants/modal';
|
|
|
|
|
|
|
|
|
|
import Content from 'views/Wallet/components/Content';
|
|
|
|
|
import l10nCommonMessages from 'views/common.messages';
|
|
|
|
|
import VerifyAddressTooltip from '../components/VerifyAddressTooltip';
|
|
|
|
|
|
|
|
|
|
import l10nMessages from './index.messages';
|
|
|
|
|
import l10nCommonMessages from '../common.messages';
|
|
|
|
|
import l10nReceiveMessages from '../common.messages';
|
|
|
|
|
|
|
|
|
|
import type { Props } from './Container';
|
|
|
|
|
|
|
|
|
@ -131,13 +132,13 @@ const AccountReceive = (props: Props) => {
|
|
|
|
|
type="text"
|
|
|
|
|
readOnly
|
|
|
|
|
autoSelect
|
|
|
|
|
topLabel="Address"
|
|
|
|
|
topLabel={props.intl.formatMessage(l10nCommonMessages.TR_ADDRESS)}
|
|
|
|
|
value={address}
|
|
|
|
|
isPartiallyHidden={isAddressHidden}
|
|
|
|
|
trezorAction={isAddressVerifying ? (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<DeviceIcon device={device} color={colors.WHITE} />
|
|
|
|
|
<FormattedMessage {...l10nCommonMessages.TR_CHECK_ADDRESS_ON_TREZOR} />
|
|
|
|
|
<FormattedMessage {...l10nReceiveMessages.TR_CHECK_ADDRESS_ON_TREZOR} />
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
) : null}
|
|
|
|
|
icon={((addressVerified || addressUnverified) && !isAddressVerifying) && (
|
|
|
|
@ -162,13 +163,13 @@ const AccountReceive = (props: Props) => {
|
|
|
|
|
/>
|
|
|
|
|
{!(addressVerified || addressUnverified) && (
|
|
|
|
|
<ShowAddressButton onClick={() => props.showAddress(account.accountPath)} isDisabled={device.connected && !discovery.completed}>
|
|
|
|
|
<ShowAddressIcon icon={ICONS.EYE} color={colors.WHITE} /><FormattedMessage {...l10nCommonMessages.TR_SHOW_FULL_ADDRESS} />
|
|
|
|
|
<ShowAddressIcon icon={ICONS.EYE} color={colors.WHITE} /><FormattedMessage {...l10nReceiveMessages.TR_SHOW_FULL_ADDRESS} />
|
|
|
|
|
</ShowAddressButton>
|
|
|
|
|
)}
|
|
|
|
|
</Row>
|
|
|
|
|
{(addressVerified || addressUnverified) && !isAddressVerifying && (
|
|
|
|
|
<QrWrapper>
|
|
|
|
|
<Label><FormattedMessage {...l10nCommonMessages.TR_QR_CODE} /></Label>
|
|
|
|
|
<Label><FormattedMessage {...l10nReceiveMessages.TR_QR_CODE} /></Label>
|
|
|
|
|
<StyledQRCode
|
|
|
|
|
bgColor="#FFFFFF"
|
|
|
|
|
fgColor="#000000"
|
|
|
|
|