mirror of https://github.com/trezor/trezor-wallet
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.
41 lines
906 B
41 lines
906 B
/* @flow */
|
|
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styled from 'styled-components';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import { H3 } from 'components/Heading';
|
|
import P from 'components/Paragraph';
|
|
|
|
import type { TrezorDevice } from 'flowtype';
|
|
import l10nMessages from './index.messages';
|
|
|
|
type Props = {
|
|
device: TrezorDevice,
|
|
};
|
|
|
|
const Wrapper = styled.div`
|
|
padding: 30px 48px;
|
|
`;
|
|
|
|
const InvalidPin = (props: Props) => (
|
|
<Wrapper>
|
|
<H3>
|
|
<FormattedMessage
|
|
{...l10nMessages.TR_ENTERED_PIN_NOT_CORRECT}
|
|
values={{ deviceLabel: props.device.label }}
|
|
/>
|
|
</H3>
|
|
<P isSmaller>
|
|
<FormattedMessage {...l10nMessages.TR_RETRYING_DOT_DOT} />
|
|
</P>
|
|
</Wrapper>
|
|
);
|
|
|
|
InvalidPin.propTypes = {
|
|
device: PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default InvalidPin;
|