mirror of
https://github.com/trezor/trezor-wallet
synced 2025-05-07 17:39:09 +00:00
nitpick: remove unnecessary flowtype
This commit is contained in:
parent
a0ff803c1d
commit
bdc8eb070e
@ -15,22 +15,10 @@ export type Error = {
|
|||||||
message: ?string,
|
message: ?string,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SignVerifyState = {
|
|
||||||
signSignature: string,
|
|
||||||
signAddress: string,
|
|
||||||
signMessage: string,
|
|
||||||
signSignature: string,
|
|
||||||
verifyAddress: string,
|
|
||||||
verifyMessage: string,
|
|
||||||
verifySignature: string,
|
|
||||||
touched: Array<string>,
|
|
||||||
errors: Array<Error>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type StateProps = {
|
export type StateProps = {
|
||||||
wallet: $ElementType<State, 'wallet'>,
|
wallet: $ElementType<State, 'wallet'>,
|
||||||
selectedAccount: $ElementType<State, 'selectedAccount'>,
|
selectedAccount: $ElementType<State, 'selectedAccount'>,
|
||||||
signVerify: SignVerifyState,
|
signVerify: $ElementType<State, 'signVerify'>,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DispatchProps = {
|
export type DispatchProps = {
|
||||||
@ -42,7 +30,7 @@ export type Props = StateProps & DispatchProps;
|
|||||||
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State): StateProps => ({
|
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State): StateProps => ({
|
||||||
wallet: state.wallet,
|
wallet: state.wallet,
|
||||||
selectedAccount: state.selectedAccount,
|
selectedAccount: state.selectedAccount,
|
||||||
signVerify: state.signVerifyReducer,
|
signVerify: state.signVerify,
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps: MapDispatchToProps<Dispatch, OwnProps, DispatchProps> = (dispatch: Dispatch): DispatchProps => ({
|
const mapDispatchToProps: MapDispatchToProps<Dispatch, OwnProps, DispatchProps> = (dispatch: Dispatch): DispatchProps => ({
|
||||||
|
@ -8,7 +8,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, SignVerifyState } from './Container';
|
import type { Props } from './Container';
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -45,7 +45,7 @@ const Verify = styled(Column)`
|
|||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
class SignVerify extends Component <Props, SignVerifyState> {
|
class SignVerify extends Component <Props> {
|
||||||
getError(inputName: string) {
|
getError(inputName: string) {
|
||||||
if (!this.props.signVerify) return null;
|
if (!this.props.signVerify) return null;
|
||||||
return this.props.signVerify.errors.find(e => e.inputName === inputName);
|
return this.props.signVerify.errors.find(e => e.inputName === inputName);
|
||||||
|
Loading…
Reference in New Issue
Block a user