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-05-12 15:01:52 +02:00
|
|
|
import { switchToConnected, unconnectedAccount } from './alerts'
|
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-12 15:01:52 +02:00
|
|
|
[ALERT_TYPES.switchToConnected]: switchToConnected,
|
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,
|
|
|
|
send: sendReducer,
|
|
|
|
confirmTransaction: confirmTransactionReducer,
|
|
|
|
gas: gasReducer,
|
|
|
|
localeMessages: localeMessagesReducer,
|
|
|
|
})
|