This repository has been archived on 2025-06-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dusken-client/src/reducers.js
T
2017-01-16 23:53:06 +01:00

16 lines
328 B
JavaScript

import {LOGIN_START} from './actions';
const initialState = {
loggedIn: false,
};
export default function duskenApp(state = initialState, action) {
switch (action.type) {
case LOGIN_START:
return Object.assign({}, state, {
loggedIn: true // INSTANT LOGIN!
});
default:
return state
}
}