PluginProbe
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.2.4
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.2.4
3.6.1 3.6.0 3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 All 165 releases
everest-forms / src / dashboard / reducers / DashboardReducer.js
DashboardReducer.js
48 lines 942 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 export const initialState = {
2 pluginsStatus: {},
3 themesStatus: {},
4 upgradeModal: {
5 enable: false,
6 type: "",
7 moduleType: "",
8 moduleName: "",
9 },
10 allModules: [],
11 };
12
13 export const actionTypes = {
14 GET_PLUGINS_STATUS: "GET_PLUGINS_STATUS",
15 GET_THEMES_STATUS: "GET_THEMES_STATUS",
16 GET_UPGRADE_MODAL: "GET_UPGRADE_MODAL",
17 GET_ALL_MODULES: "GET_ALL_MODULES",
18 };
19
20 const dashboardReducer = (state, action) => {
21 switch (action.type) {
22 case actionTypes.GET_PLUGINS_STATUS:
23 return {
24 ...state,
25 pluginsStatus: action.pluginsStatus,
26 };
27 case actionTypes.GET_THEMES_STATUS:
28 return {
29 ...state,
30 themesStatus: action.themesStatus,
31 };
32 case actionTypes.GET_UPGRADE_MODAL:
33 return {
34 ...state,
35 upgradeModal: action.upgradeModal,
36 };
37 case actionTypes.GET_ALL_MODULES:
38 return {
39 ...state,
40 allModules: action.allModules,
41 };
42 default:
43 return state;
44 }
45 };
46
47 export default dashboardReducer;
48