Add appConfig reducer for autoRefresh

pull/10616/head
Jared Scheib 2017-02-24 17:07:14 -08:00
parent ce33ca516a
commit aac35bc7b8
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
const initialState = {
autoRefreshMs: 15000,
};
export default function appConfig(state = initialState, action) {
switch (action.type) {
case 'SET_AUTOREFRESH': {
return {
...state,
autoRefreshMs: action.payload,
}
}
}
return state
}

View File

@ -1,4 +1,5 @@
import appUI from './ui';
import appConfig from './appConfig';
import me from './me';
import auth from './auth';
import notifications from './notifications';
@ -6,6 +7,7 @@ import sources from './sources';
export {
appUI,
appConfig,
me,
auth,
notifications,