1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00
trezor-wallet/src/js/reducers/index.js

51 lines
1.3 KiB
JavaScript
Raw Normal View History

2017-12-13 11:01:37 +00:00
/* @flow */
'use strict';
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
2018-03-08 16:10:53 +00:00
import log from './LogReducer.js';
2018-02-20 09:30:36 +00:00
import localStorage from './LocalStorageReducer.js';
2017-12-13 11:01:37 +00:00
import connect from './TrezorConnectReducer.js';
2018-02-20 09:30:36 +00:00
import notifications from './NotificationReducer.js';
2017-12-13 11:01:37 +00:00
import modal from './ModalReducer.js';
import web3 from './Web3Reducer.js';
2018-02-20 09:30:36 +00:00
import accounts from './AccountsReducer.js';
2018-05-18 17:26:46 +00:00
import selectedAccount from './SelectedAccountReducer.js';
2017-12-13 11:01:37 +00:00
import sendForm from './SendFormReducer.js';
2018-02-20 09:30:36 +00:00
import receive from './ReceiveReducer.js';
import summary from './SummaryReducer.js';
import tokens from './TokensReducer.js';
import discovery from './DiscoveryReducer.js';
2018-03-08 16:10:53 +00:00
import pending from './PendingTxReducer.js';
import fiat from './FiatRateReducer.js';
import wallet from './WalletReducer.js';
import devices from './DevicesReducer.js';
2017-12-13 11:01:37 +00:00
2018-04-16 21:19:50 +00:00
const reducers = {
2017-12-13 11:01:37 +00:00
router: routerReducer,
2018-03-08 16:10:53 +00:00
log,
2018-02-20 09:30:36 +00:00
localStorage,
2017-12-13 11:01:37 +00:00
connect,
2018-02-20 09:30:36 +00:00
notifications,
2017-12-13 11:01:37 +00:00
modal,
web3,
2018-02-20 09:30:36 +00:00
accounts,
2018-05-18 17:26:46 +00:00
selectedAccount,
2018-02-20 09:30:36 +00:00
sendForm,
receive,
summary,
tokens,
2018-03-08 16:10:53 +00:00
discovery,
pending,
fiat,
wallet,
devices
2018-04-16 21:19:50 +00:00
}
export type Reducers = typeof reducers;
type $ExtractFunctionReturn = <V>(v: (...args: any) => V) => V;
export type ReducersState = $ObjMap<Reducers, $ExtractFunctionReturn>;
export default combineReducers(reducers);