sharyn
Version:
Combines all the other packages under one.
27 lines (19 loc) • 666 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.logoutCase = exports.loginCase = void 0;
var _actions = require("./actions");
var _userReductions = require("./user-reductions");
var loginCase = function loginCase(envState, payload) {
return [_actions.SHARYN_LOG_USER_IN, function () {
return (0, _userReductions.setUser)(payload);
}];
}; // eslint-disable-next-line no-unused-vars
exports.loginCase = loginCase;
var logoutCase = function logoutCase(envState, payload) {
return [_actions.SHARYN_LOG_USER_OUT, function () {
return (0, _userReductions.deleteUser)();
}];
};
exports.logoutCase = logoutCase;