1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-05 22:32:33 +00:00
trezor-wallet/src/components/modals/pin/Invalid/index.js
Szymon Lesisz 0cb723b9db flowtype fixes
for all modals
2018-10-09 17:32:56 +02:00

26 lines
574 B
JavaScript

/* @flow */
import React from 'react';
import styled from 'styled-components';
import { H3 } from 'components/Heading';
import P from 'components/Paragraph';
import type { Props } from '../../index';
const Wrapper = styled.div`
padding: 24px 48px;
`;
const InvalidPin = (props: Props) => {
if (!props.modal.opened) return null;
const { device } = props.modal;
return (
<Wrapper>
<H3>Entered PIN for { device.label } is not correct</H3>
<P isSmaller>Retrying...</P>
</Wrapper>
);
};
export default InvalidPin;