mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
observe from WalletService
This commit is contained in:
parent
6cf3cb4bdb
commit
9f98e7dd7e
@ -10,6 +10,7 @@ import * as NotificationActions from 'actions/NotificationActions';
|
|||||||
import * as LocalStorageActions from 'actions/LocalStorageActions';
|
import * as LocalStorageActions from 'actions/LocalStorageActions';
|
||||||
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
||||||
import * as SelectedAccountActions from 'actions/SelectedAccountActions';
|
import * as SelectedAccountActions from 'actions/SelectedAccountActions';
|
||||||
|
import * as SendFormActionActions from 'actions/SendFormActions';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
Middleware,
|
Middleware,
|
||||||
@ -91,6 +92,8 @@ const WalletService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
|
|||||||
api.dispatch(NotificationActions.clear(prevLocation.state, currentLocation.state));
|
api.dispatch(NotificationActions.clear(prevLocation.state, currentLocation.state));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// observe send form props changes
|
||||||
|
api.dispatch(SendFormActionActions.observe(prevState, action));
|
||||||
|
|
||||||
// update common values in WallerReducer
|
// update common values in WallerReducer
|
||||||
api.dispatch(WalletActions.updateSelectedValues(prevState, action));
|
api.dispatch(WalletActions.updateSelectedValues(prevState, action));
|
||||||
|
Loading…
Reference in New Issue
Block a user