mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-08 23:21:00 +00:00
FirmwareUpdate target
This commit is contained in:
parent
149b07cb2e
commit
2607417583
@ -49,6 +49,14 @@ const StyledP = styled(P)`
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const getFirmwareReleaseLink = (device: ?TrezorDevice): string => {
|
||||||
|
if (!device || !device.firmwareRelease) return 'https://beta-wallet.trezor.io';
|
||||||
|
const release = device.firmwareRelease;
|
||||||
|
const url = release.channel === 'beta' ? 'https://beta-wallet.trezor.io/' : 'https://wallet.trezor.io/';
|
||||||
|
const version = release.version.join('.');
|
||||||
|
return `${url}?fw=${version}`;
|
||||||
|
};
|
||||||
|
|
||||||
const FirmwareUpdate = (props: Props) => (
|
const FirmwareUpdate = (props: Props) => (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Image>
|
<Image>
|
||||||
@ -129,7 +137,7 @@ const FirmwareUpdate = (props: Props) => (
|
|||||||
</Image>
|
</Image>
|
||||||
<H1>It’s time to update your firmware</H1>
|
<H1>It’s time to update your firmware</H1>
|
||||||
<StyledP>Please use Bitcoin wallet interface to update your firmware.</StyledP>
|
<StyledP>Please use Bitcoin wallet interface to update your firmware.</StyledP>
|
||||||
<Link href="https://beta-wallet.trezor.io">
|
<Link href={getFirmwareReleaseLink(props.device)}>
|
||||||
<Button>Take me to the Bitcoin wallet</Button>
|
<Button>Take me to the Bitcoin wallet</Button>
|
||||||
</Link>
|
</Link>
|
||||||
{deviceUtils.isDeviceAccessible(props.device) && (
|
{deviceUtils.isDeviceAccessible(props.device) && (
|
||||||
|
Loading…
Reference in New Issue
Block a user