|
|
@@ -13,7 +13,6 @@ import {
|
|
13
|
13
|
SET_CALENDAR_PROFILE_EMAIL,
|
|
14
|
14
|
SET_LOADING_CALENDAR_EVENTS
|
|
15
|
15
|
} from './actionTypes';
|
|
16
|
|
-import { isCalendarEnabled } from './functions';
|
|
17
|
16
|
|
|
18
|
17
|
/**
|
|
19
|
18
|
* The default state of the calendar feature.
|
|
|
@@ -50,10 +49,6 @@ PersistenceRegistry.register(STORE_NAME, {
|
|
50
|
49
|
});
|
|
51
|
50
|
|
|
52
|
51
|
ReducerRegistry.register(STORE_NAME, (state = DEFAULT_STATE, action) => {
|
|
53
|
|
- if (!isCalendarEnabled(state)) {
|
|
54
|
|
- return state;
|
|
55
|
|
- }
|
|
56
|
|
-
|
|
57
|
52
|
switch (action.type) {
|
|
58
|
53
|
case CLEAR_CALENDAR_INTEGRATION:
|
|
59
|
54
|
return DEFAULT_STATE;
|