1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-02-02 11:21:11 +00:00

Fix eslint/flow errors

This commit is contained in:
Vasek Mlejnsky 2018-08-28 09:01:08 +02:00
parent f820637023
commit b42e8adb03
2 changed files with 3 additions and 10 deletions

View File

@ -1,12 +1,8 @@
/* @flow */
import React, { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { default as ReceiveActions } from 'actions/ReceiveActions';
import * as TokenActions from 'actions/TokenActions';
import { showAddress } from 'actions/ReceiveActions';
import type { MapStateToProps, MapDispatchToProps } from 'react-redux';
import type { State, Dispatch } from 'flowtype';
import type {
@ -23,7 +19,7 @@ type StateProps = BaseStateProps & {
}
type DispatchProps = BaseDispatchProps & {
showAddress: typeof ReceiveActions.showAddress
showAddress: typeof showAddress
};
export type Props = StateProps & BaseStateProps & DispatchProps & BaseDispatchProps;
@ -38,7 +34,7 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: St
});
const mapDispatchToProps: MapDispatchToProps<Dispatch, OwnProps, DispatchProps> = (dispatch: Dispatch): DispatchProps => ({
showAddress: bindActionCreators(ReceiveActions.showAddress, dispatch),
showAddress: bindActionCreators(showAddress, dispatch),
});
export default connect(mapStateToProps, mapDispatchToProps)(Receive);

View File

@ -1,7 +1,4 @@
/* @flow */
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';