|
@@ -1,10 +1,8 @@
|
1
|
|
-import { SET_ROOM } from '../base/conference';
|
2
|
|
-import { SET_LOCATION_URL } from '../base/connection';
|
|
1
|
+// @flow
|
3
|
2
|
|
4
|
|
-import { ReducerRegistry, set } from '../base/redux';
|
|
3
|
+import { ReducerRegistry } from '../base/redux';
|
5
|
4
|
|
6
|
5
|
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes';
|
7
|
|
-import { _getRouteToRender } from './functions';
|
8
|
6
|
|
9
|
7
|
ReducerRegistry.register('features/app', (state = {}, action) => {
|
10
|
8
|
switch (action.type) {
|
|
@@ -35,12 +33,6 @@ ReducerRegistry.register('features/app', (state = {}, action) => {
|
35
|
33
|
};
|
36
|
34
|
}
|
37
|
35
|
break;
|
38
|
|
-
|
39
|
|
- case SET_LOCATION_URL:
|
40
|
|
- return set(state, 'getRouteToRender', undefined);
|
41
|
|
-
|
42
|
|
- case SET_ROOM:
|
43
|
|
- return set(state, 'getRouteToRender', _getRouteToRender);
|
44
|
36
|
}
|
45
|
37
|
|
46
|
38
|
return state;
|