mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-13 20:08:56 +00:00
Fixed eslint and flow
This commit is contained in:
parent
235f5cbdc3
commit
bed5932498
@ -3,7 +3,6 @@ import TrezorConnect from 'trezor-connect';
|
||||
import type {
|
||||
GetState, Dispatch, ThunkAction, AsyncAction,
|
||||
} from 'flowtype';
|
||||
import type { State } from 'reducers/SignVerifyReducer';
|
||||
import * as NOTIFICATION from 'actions/constants/notification';
|
||||
import * as SIGN_VERIFY from './constants/signVerify';
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* @flow */
|
||||
import React, { Component } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import Input from 'components/inputs/Input';
|
||||
@ -10,6 +11,8 @@ import Button from 'components/Button';
|
||||
import Content from 'views/Wallet/components/Content';
|
||||
import colors from 'config/colors';
|
||||
|
||||
import type { Props } from './Container';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
display: flex;
|
||||
flex: 1;
|
||||
@ -86,8 +89,15 @@ const ConfirmText = styled.div`
|
||||
color: white;
|
||||
`;
|
||||
|
||||
class SignVerify extends Component {
|
||||
constructor(props) {
|
||||
type State = {
|
||||
signMessage: string,
|
||||
verifyAddress: string,
|
||||
verifyMessage: string,
|
||||
verifySignature: string
|
||||
}
|
||||
|
||||
class SignVerify extends Component<Props, State> {
|
||||
constructor(props: Props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
signMessage: '',
|
||||
@ -110,7 +120,7 @@ class SignVerify extends Component {
|
||||
return result || 'loading...';
|
||||
}
|
||||
|
||||
handleInputChange = (event) => {
|
||||
handleInputChange = (event: SyntheticInputEvent<Text>) => {
|
||||
this.setState({ [event.target.name]: event.target.value });
|
||||
}
|
||||
|
||||
@ -176,7 +186,7 @@ class SignVerify extends Component {
|
||||
<Label>Signature</Label>
|
||||
<Textarea
|
||||
name="signSignature"
|
||||
value={this.props.signature}
|
||||
value={signature}
|
||||
rows={4}
|
||||
maxRows={4}
|
||||
maxLength="255"
|
||||
|
Loading…
Reference in New Issue
Block a user