You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/src/views/Wallet/views/DeviceSettings/index.js

63 lines
1.6 KiB

/* @flow */
import React from 'react';
import styled from 'styled-components';
import { H1 } from 'components/Heading';
import Icon from 'components/Icon';
import colors from 'config/colors';
import Button from 'components/Button';
import P from 'components/Paragraph';
import Link from 'components/Link';
import ICONS from 'config/icons';
import { getOldWalletUrl } from 'utils/url';
import Content from 'views/Wallet/components/Content';
import { connect } from 'react-redux';
import type { TrezorDevice } from 'flowtype';
type Props = {
device: ?TrezorDevice;
}
const Section = styled.section`
display: flex;
flex-direction: column;
`;
const Row = styled.div`
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 50px 0;
`;
const StyledP = styled(P)`
padding: 0 0 15px 0;
text-align: center;
`;
const StyledH1 = styled(H1)`
text-align: center;
`;
const DeviceSettings = (props: Props) => (
<Content>
<Section>
<Row>
<Icon
size={60}
color={colors.WARNING_PRIMARY}
icon={ICONS.WARNING}
/>
<StyledH1>Device settings is under construction</StyledH1>
<StyledP>Please use Bitcoin wallet interface to change your device settings</StyledP>
<Link href={getOldWalletUrl(props.device)} target="_self">
<Button>Take me to the Bitcoin wallet</Button>
</Link>
</Row>
</Section>
</Content>
);
export default connect(null, null)(DeviceSettings);