blob: add50fb6c1f610da9961f3a3d27d0bdac848cff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { Map, fromJS } from 'immutable';
import { INIT } from 'ba-actions/actionTypes';
const initialState = {
usersLogin: Map({
email: 'johndoe@mail.com',
password: '12345678',
remember: false
})
};
const initialImmutableState = fromJS(initialState);
export default function reducer(state = initialImmutableState, action = {}) {
switch (action.type) {
case INIT:
return state;
default:
return state;
}
}
|