Add appConfig reducer for autoRefresh
parent
ce33ca516a
commit
aac35bc7b8
|
@ -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
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue