Show version info in settings
This commit is contained in:
parent
5d896ae439
commit
fbbcf6457e
8 changed files with 275 additions and 174 deletions
|
@ -1,3 +1,4 @@
|
|||
import assign from 'lodash/assign';
|
||||
import createReducer from 'utils/createReducer';
|
||||
import * as actions from './actions';
|
||||
|
||||
|
@ -29,7 +30,11 @@ const initialState = {
|
|||
|
||||
export default createReducer(initialState, {
|
||||
[actions.APP_SET](state, { key, value }) {
|
||||
state[key] = value;
|
||||
if (typeof key === 'object') {
|
||||
assign(state, key);
|
||||
} else {
|
||||
state[key] = value;
|
||||
}
|
||||
},
|
||||
|
||||
[actions.UPDATE_MESSAGE_HEIGHT](state, action) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue