1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00

fix flow 2

This commit is contained in:
Vladimir Volek 2018-11-22 14:34:11 +01:00
parent 68d3bbb738
commit 22adf7fac1
2 changed files with 4 additions and 12 deletions

View File

@ -15,7 +15,7 @@ export type StateProps = {
selectedAccount: $ElementType<State, 'selectedAccount'>,
}
type SignVerify = {
export type SignVerifyState = {
signSignature: string,
signAddress: string,
signMessage: string,
@ -28,7 +28,7 @@ type SignVerify = {
export type DispatchProps = {
signVerifyActions: typeof SignVerifyActions,
signVerify: SignVerify
signVerify: SignVerifyState
}
export type Props = StateProps & DispatchProps;

View File

@ -9,7 +9,7 @@ import Button from 'components/Button';
import Content from 'views/Wallet/components/Content';
import colors from 'config/colors';
import type { Props } from './Container';
import type { Props, SignVerifyState } from './Container';
const Wrapper = styled.div`
display: flex;
@ -46,15 +46,7 @@ const Verify = styled(Column)`
padding-left: 20px;
`;
type State = {
signMessage: string,
verifyAddress: string,
verifyMessage: string,
verifySignature: string,
touched: Array<string>
}
class SignVerify extends Component<Props, State> {
class SignVerify extends Component <Props, SignVerifyState> {
handleInputChange = (event: SyntheticInputEvent<Text>) => {
this.props.signVerifyActions.inputChange(event.target.name, event.target.value);
}