Repository URL to install this package:
|
Version:
0.4.8 ▾
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var initialSettingsState = {
saveUser: {
loading: false,
error: null,
success: false
},
saveNewPassword: {
loading: false,
error: null
},
saveNewEmail: {
loading: false,
error: null,
success: false
},
deleteAccount: {
loading: false,
error: null
},
deleteThirdParty: {
loading: false,
error: null,
success: false
},
fetchPremiums: {
premiums: null,
loading: false,
error: null
},
deleteCalendar: {
loading: false,
error: null,
success: false
},
getDoodleFeed: {
value: '',
loading: false,
error: null,
success: false
},
connectDoodleFeed: {
loading: false,
error: null,
success: false
},
resetDoodleFeed: {
loading: false,
error: null,
success: false
},
deleteAddressBook: {
loading: false,
error: null,
success: false
},
saveAvatar: {
loading: false,
error: null,
success: false
},
deleteAvatar: {
loading: false,
error: null,
success: false
},
logoutApps: {
loading: false,
error: null,
success: false
},
getApps: {
loading: false,
error: null,
success: false
},
apps: [],
doodleFeed: ''
};
var createSettingsState = function createSettingsState() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return _defineProperty({}, options.domain || 'userSettings', options.initialState);
};
exports.initialSettingsState = initialSettingsState;
exports.default = createSettingsState;