PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | assets/src/apps/js/frontend/modal/store/reducer.js +33 -33 4.3.9 → 4.4.9 View file →
@@ -1,33 +1,33 @@
1 -const STORE_DATA = {};
2 -
3 -export const Modal = ( state = STORE_DATA, action ) => {
4 - switch ( action.type ) {
5 - case 'SHOW_MODAL':
6 - return {
7 - ...state,
8 - isOpen: true,
9 - message: action.message,
10 - cb: action.cb,
11 - };
12 - case 'HIDE_MODAL':
13 - return {
14 - ...state,
15 - isOpen: false,
16 - message: false,
17 - cb: null,
18 - };
19 - case 'CONFIRM':
20 - state.cb &&
21 - setTimeout( () => {
22 - state.cb();
23 - }, 10 );
24 -
25 - return {
26 - ...state,
27 - confirm: action.value,
28 - };
29 - }
30 - return state;
31 -};
32 -
33 -export default Modal;
1 +const STORE_DATA = {};
2 +
3 +export const Modal = ( state = STORE_DATA, action ) => {
4 + switch ( action.type ) {
5 + case 'SHOW_MODAL':
6 + return {
7 + ...state,
8 + isOpen: true,
9 + message: action.message,
10 + cb: action.cb,
11 + };
12 + case 'HIDE_MODAL':
13 + return {
14 + ...state,
15 + isOpen: false,
16 + message: false,
17 + cb: null,
18 + };
19 + case 'CONFIRM':
20 + state.cb &&
21 + setTimeout( () => {
22 + state.cb();
23 + }, 10 );
24 +
25 + return {
26 + ...state,
27 + confirm: action.value,
28 + };
29 + }
30 + return state;
31 +};
32 +
33 +export default Modal;