mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
54e9c53b27
* Add web3 shim usage alert background state and logic * Cleanup alert background state, constants * Implement web3 shim usage notification and settings * nodeify alert controller background hooks * Remove svg icon, again * Tweak alert controller initialization * Add support article URL * Un-thunk alert UI "actions" * Delete connect.svg file (unused)
26 lines
1012 B
JavaScript
26 lines
1012 B
JavaScript
import { combineReducers } from 'redux'
|
|
import { ALERT_TYPES } from '../../../shared/constants/alerts'
|
|
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'
|
|
|
|
export default combineReducers({
|
|
[ALERT_TYPES.invalidCustomNetwork]: invalidCustomNetwork,
|
|
[ALERT_TYPES.unconnectedAccount]: unconnectedAccount,
|
|
activeTab: (s) => (s === undefined ? null : s),
|
|
metamask: metamaskReducer,
|
|
appState: appStateReducer,
|
|
history: historyReducer,
|
|
send: sendReducer,
|
|
confirmTransaction: confirmTransactionReducer,
|
|
swaps: swapsReducer,
|
|
gas: gasReducer,
|
|
localeMessages: localeMessagesReducer,
|
|
})
|