From 7ad2ca62a3557dc4ffaafa3435aeffe204cd422d Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Thu, 4 Oct 2018 10:51:55 +0200 Subject: [PATCH] "addAccount" called from DiscoveryActions --- src/views/Wallet/components/LeftNavigation/Container.js | 3 ++- .../Wallet/components/LeftNavigation/components/common.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/Wallet/components/LeftNavigation/Container.js b/src/views/Wallet/components/LeftNavigation/Container.js index e297c59c..8263823b 100644 --- a/src/views/Wallet/components/LeftNavigation/Container.js +++ b/src/views/Wallet/components/LeftNavigation/Container.js @@ -5,6 +5,7 @@ import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import * as TrezorConnectActions from 'actions/TrezorConnectActions'; +import * as DiscoveryActions from 'actions/DiscoveryActions'; import * as RouterActions from 'actions/RouterActions'; import type { MapStateToProps, MapDispatchToProps } from 'react-redux'; import type { State, Dispatch } from 'flowtype'; @@ -32,7 +33,7 @@ const mapStateToProps: MapStateToProps = (state: St const mapDispatchToProps: MapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({ toggleDeviceDropdown: bindActionCreators(toggleDeviceDropdown, dispatch), - addAccount: bindActionCreators(TrezorConnectActions.addAccount, dispatch), + addAccount: bindActionCreators(DiscoveryActions.addAccount, dispatch), acquireDevice: bindActionCreators(TrezorConnectActions.acquire, dispatch), forgetDevice: bindActionCreators(TrezorConnectActions.forget, dispatch), duplicateDevice: bindActionCreators(TrezorConnectActions.duplicateDevice, dispatch), diff --git a/src/views/Wallet/components/LeftNavigation/components/common.js b/src/views/Wallet/components/LeftNavigation/components/common.js index ee7f1d37..6886e7c1 100644 --- a/src/views/Wallet/components/LeftNavigation/components/common.js +++ b/src/views/Wallet/components/LeftNavigation/components/common.js @@ -1,5 +1,6 @@ /* @flow */ import * as TrezorConnectActions from 'actions/TrezorConnectActions'; +import * as DiscoveryActions from 'actions/DiscoveryActions'; import * as RouterActions from 'actions/RouterActions'; import { toggleDeviceDropdown } from 'actions/WalletActions'; import type { State } from 'flowtype'; @@ -19,7 +20,7 @@ export type StateProps = { export type DispatchProps = { toggleDeviceDropdown: typeof toggleDeviceDropdown, - addAccount: typeof TrezorConnectActions.addAccount, + addAccount: typeof DiscoveryActions.addAccount, acquireDevice: typeof TrezorConnectActions.acquire, forgetDevice: typeof TrezorConnectActions.forget, duplicateDevice: typeof TrezorConnectActions.duplicateDevice,