2020-02-06 17:38:14 +01:00
|
|
|
import { combineReducers } from 'redux'
|
|
|
|
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'
|
2020-06-15 21:08:53 +02:00
|
|
|
import { unconnectedAccount } from './alerts'
|
2020-06-01 19:54:32 +02:00
|
|
|
import historyReducer from './history/history'
|
2020-05-08 21:45:52 +02:00
|
|
|
import { ALERT_TYPES } from '../../../app/scripts/controllers/alert'
|
2020-02-06 17:38:14 +01:00
|
|
|
|
|
|
|
export default combineReducers({
|
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,
|
|
|
|
gas: gasReducer,
|
|
|
|
localeMessages: localeMessagesReducer,
|
|
|
|
})
|