mirror of
https://github.com/trezor/trezor-wallet
synced 2025-05-11 03:18:46 +00:00
fix flow 2
This commit is contained in:
parent
68d3bbb738
commit
22adf7fac1
@ -15,7 +15,7 @@ export type StateProps = {
|
|||||||
selectedAccount: $ElementType<State, 'selectedAccount'>,
|
selectedAccount: $ElementType<State, 'selectedAccount'>,
|
||||||
}
|
}
|
||||||
|
|
||||||
type SignVerify = {
|
export type SignVerifyState = {
|
||||||
signSignature: string,
|
signSignature: string,
|
||||||
signAddress: string,
|
signAddress: string,
|
||||||
signMessage: string,
|
signMessage: string,
|
||||||
@ -28,7 +28,7 @@ type SignVerify = {
|
|||||||
|
|
||||||
export type DispatchProps = {
|
export type DispatchProps = {
|
||||||
signVerifyActions: typeof SignVerifyActions,
|
signVerifyActions: typeof SignVerifyActions,
|
||||||
signVerify: SignVerify
|
signVerify: SignVerifyState
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Props = StateProps & DispatchProps;
|
export type Props = StateProps & DispatchProps;
|
||||||
|
@ -9,7 +9,7 @@ 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';
|
import type { Props, SignVerifyState } from './Container';
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -46,15 +46,7 @@ const Verify = styled(Column)`
|
|||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type State = {
|
class SignVerify extends Component <Props, SignVerifyState> {
|
||||||
signMessage: string,
|
|
||||||
verifyAddress: string,
|
|
||||||
verifyMessage: string,
|
|
||||||
verifySignature: string,
|
|
||||||
touched: Array<string>
|
|
||||||
}
|
|
||||||
|
|
||||||
class SignVerify extends Component<Props, State> {
|
|
||||||
handleInputChange = (event: SyntheticInputEvent<Text>) => {
|
handleInputChange = (event: SyntheticInputEvent<Text>) => {
|
||||||
this.props.signVerifyActions.inputChange(event.target.name, event.target.value);
|
this.props.signVerifyActions.inputChange(event.target.name, event.target.value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user