2021-02-04 19:15:23 +01:00
|
|
|
import { combineReducers } from 'redux';
|
2023-01-27 19:28:03 +01:00
|
|
|
import { AlertTypes } from '../../shared/constants/alerts';
|
2021-02-04 19:15:23 +01:00
|
|
|
import metamaskReducer from './metamask/metamask';
|
|
|
|
import localeMessagesReducer from './locale/locale';
|
2021-06-23 23:35:25 +02:00
|
|
|
import sendReducer from './send/send';
|
2022-11-21 16:19:11 +01:00
|
|
|
import domainReducer from './domains';
|
2021-02-04 19:15:23 +01:00
|
|
|
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({
|
2023-01-27 19:28:03 +01:00
|
|
|
[AlertTypes.invalidCustomNetwork]: invalidCustomNetwork,
|
|
|
|
[AlertTypes.unconnectedAccount]: unconnectedAccount,
|
2020-02-06 17:38:14 +01:00
|
|
|
activeTab: (s) => (s === undefined ? null : s),
|
|
|
|
metamask: metamaskReducer,
|
|
|
|
appState: appStateReducer,
|
2022-11-21 16:19:11 +01:00
|
|
|
DNS: domainReducer,
|
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
|
|
|
});
|