Merge pull request #413 from trezor/fix/link-to-bitcoin-wallet

Link to "bitcoin wallet" shouldn't be opened in new tab
pull/407/head^2
Maroš 5 years ago committed by GitHub
commit 9902a0c21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,7 +70,7 @@ const Confirmation = (props: Props) => (
<Icon size={48} color={colors.WARNING_PRIMARY} icon={icons.WARNING} />
<StyledP isSmaller>If your device is ever lost or damaged, your funds will be lost. Backup your device first, to protect your coins against such events.</StyledP>
<Row>
<Link href={`${getOldWalletUrl(props.device)}/?backup`}>
<Link href={`${getOldWalletUrl(props.device)}/?backup`} target="_self">
<BackupButton onClick={() => props.onReceiveConfirmation(false)}>Create a backup in 3 minutes</BackupButton>
</Link>
<ProceedButton isWhite onClick={() => props.onReceiveConfirmation(true)}>Show address, I will take the risk</ProceedButton>

@ -51,7 +51,7 @@ const DeviceSettings = (props: Props) => (
/>
<StyledH1>Device settings is under construction</StyledH1>
<StyledP>Please use Bitcoin wallet interface to change your device settings</StyledP>
<Link href={getOldWalletUrl(props.device)}>
<Link href={getOldWalletUrl(props.device)} target="_self">
<Button>Take me to the Bitcoin wallet</Button>
</Link>
</Row>

@ -137,7 +137,7 @@ const FirmwareUpdate = (props: Props) => (
<StyledP>
<FormattedMessage {...l10nMessages.TR_PLEASE_USE_OLD_WALLET} />
</StyledP>
<Link href={getOldWalletReleaseUrl(props.device)}>
<Link href={getOldWalletReleaseUrl(props.device)} target="_self">
<Button>
<FormattedMessage {...l10nCommonMessages.TR_TAKE_ME_TO_BITCOIN_WALLET} />
</Button>

@ -42,7 +42,7 @@ const Initialize = (props: Props) => (
<Row>
<H1><FormattedMessage {...l10nMessages.TR_YOUR_DEVICE_IS_NOT_INITIALIZED} /></H1>
<StyledParagraph><FormattedMessage {...l10nMessages.TR_PLEASE_USE_TO_START_INITIALIZATION} /></StyledParagraph>
<A href={getOldWalletUrl(props.device)}>
<A href={getOldWalletUrl(props.device)} target="_self">
<Button><FormattedMessage {...l10nCommonMessages.TR_TAKE_ME_TO_BITCOIN_WALLET} /></Button>
</A>
</Row>

@ -57,7 +57,7 @@ const FirmwareUpdate = (props: Props) => (
<StyledP>If your device is ever lost or damaged, your funds will be lost. Backup your device first, to protect your coins against such events.</StyledP>
<P>Please use Bitcoin wallet interface to create a backup.</P>
</Message>
<Link href={`${getOldWalletUrl(props.device)}?backup=1`}>
<Link href={`${getOldWalletUrl(props.device)}?backup=1`} target="_self">
<Button>Take me to the Bitcoin wallet</Button>
</Link>
<StyledNavLink to="/">Ill do that later.</StyledNavLink>

Loading…
Cancel
Save