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