blob: bb8e1b08e46658ad95fdc4e173733b2b3ab93f05 (
plain) (
tree)
|
|
const extend = require('xtend')
const actions = require('../../store/actions')
module.exports = reduceMetamask
function reduceMetamask (state, action) {
const localeMessagesState = extend({}, state.localeMessages)
switch (action.type) {
case actions.SET_LOCALE_MESSAGES:
return extend(localeMessagesState, {
current: action.value,
})
default:
return localeMessagesState
}
}
|