mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-07 00:28:46 +00:00
Fix eslint/flow errors
This commit is contained in:
parent
f820637023
commit
b42e8adb03
@ -1,12 +1,8 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
|
|
||||||
|
|
||||||
import React, { Component, PropTypes } from 'react';
|
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { default as ReceiveActions } from 'actions/ReceiveActions';
|
import { showAddress } from 'actions/ReceiveActions';
|
||||||
import * as TokenActions from 'actions/TokenActions';
|
|
||||||
import type { MapStateToProps, MapDispatchToProps } from 'react-redux';
|
import type { MapStateToProps, MapDispatchToProps } from 'react-redux';
|
||||||
import type { State, Dispatch } from 'flowtype';
|
import type { State, Dispatch } from 'flowtype';
|
||||||
import type {
|
import type {
|
||||||
@ -23,7 +19,7 @@ type StateProps = BaseStateProps & {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DispatchProps = BaseDispatchProps & {
|
type DispatchProps = BaseDispatchProps & {
|
||||||
showAddress: typeof ReceiveActions.showAddress
|
showAddress: typeof showAddress
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Props = StateProps & BaseStateProps & DispatchProps & BaseDispatchProps;
|
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 => ({
|
const mapDispatchToProps: MapDispatchToProps<Dispatch, OwnProps, DispatchProps> = (dispatch: Dispatch): DispatchProps => ({
|
||||||
showAddress: bindActionCreators(ReceiveActions.showAddress, dispatch),
|
showAddress: bindActionCreators(showAddress, dispatch),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(Receive);
|
export default connect(mapStateToProps, mapDispatchToProps)(Receive);
|
@ -1,7 +1,4 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user