2021-02-04 19:15:23 +01:00
|
|
|
import { combineReducers } from 'redux';
|
2021-04-28 21:53:59 +02:00
|
|
|
import { ALERT_TYPES } from '../../shared/constants/alerts';
|
2021-02-04 19:15:23 +01:00
|
|
|
import metamaskReducer from './metamask/metamask';
|
|
|
|
import localeMessagesReducer from './locale/locale';
|
|
|
|
import sendReducer from './send/send.duck';
|
|
|
|
import appStateReducer from './app/app';
|
|
|
|
import confirmTransactionReducer from './confirm-transaction/confirm-transaction.duck';
|
|
|
|
import gasReducer from './gas/gas.duck';
|
|
|
|
import { invalidCustomNetwork, unconnectedAccount } from './alerts';
|
|
|
|
import swapsReducer from './swaps/swaps';
|
|
|
|
import historyReducer from './history/history';
|
2020-02-06 17:38:14 +01:00
|
|
|
|
|
|
|
export default combineReducers({
|
2020-10-06 19:57:02 +02:00
|
|
|
[ALERT_TYPES.invalidCustomNetwork]: invalidCustomNetwork,
|
2020-05-08 21:45:52 +02:00
|
|
|
[ALERT_TYPES.unconnectedAccount]: unconnectedAccount,
|
2020-02-06 17:38:14 +01:00
|
|
|
activeTab: (s) => (s === undefined ? null : s),
|
|
|
|
metamask: metamaskReducer,
|
|
|
|
appState: appStateReducer,
|
2020-06-01 19:54:32 +02:00
|
|
|
history: historyReducer,
|
2020-02-06 17:38:14 +01:00
|
|
|
send: sendReducer,
|
|
|
|
confirmTransaction: confirmTransactionReducer,
|
2020-10-06 20:28:38 +02:00
|
|
|
swaps: swapsReducer,
|
2020-02-06 17:38:14 +01:00
|
|
|
gas: gasReducer,
|
|
|
|
localeMessages: localeMessagesReducer,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|