fb-test-module
Version:
How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act
20 lines (19 loc) • 634 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const immutable_1 = require("immutable");
const BaseType_1 = require("../BaseType");
const Type_1 = require("./Type");
const BaseReducer_1 = require("../BaseReducer");
const initialState = immutable_1.fromJS({
status: BaseType_1.Status.Default,
error: undefined
});
exports.userReducer = (state = initialState, action) => {
switch (action.type) {
case Type_1.REMOVE_USER:
return initialState;
default:
return BaseReducer_1.baseReducer(state, action, Type_1.USER_ENTITY);
}
;
};
;