|
|
@@ -1,5 +1,4 @@
|
|
1
|
1
|
/* global APP */
|
|
2
|
|
-/* eslint-disable react/no-multi-comp */
|
|
3
|
2
|
|
|
4
|
3
|
import PropTypes from 'prop-types';
|
|
5
|
4
|
import React, { Component } from 'react';
|
|
|
@@ -13,7 +12,7 @@ import {
|
|
13
|
12
|
localParticipantJoined,
|
|
14
|
13
|
localParticipantLeft
|
|
15
|
14
|
} from '../../base/participants';
|
|
16
|
|
-import { RouteRegistry } from '../../base/react';
|
|
|
15
|
+import { Fragment, RouteRegistry } from '../../base/react';
|
|
17
|
16
|
import { MiddlewareRegistry, ReducerRegistry } from '../../base/redux';
|
|
18
|
17
|
import { toURLString } from '../../base/util';
|
|
19
|
18
|
import { OverlayContainer } from '../../overlay';
|
|
|
@@ -27,32 +26,6 @@ import { appNavigate, appWillMount, appWillUnmount } from '../actions';
|
|
27
|
26
|
*/
|
|
28
|
27
|
const DEFAULT_URL = 'https://meet.jit.si';
|
|
29
|
28
|
|
|
30
|
|
-/**
|
|
31
|
|
- * react-redux's {@code Provider} component only accepts a single child, so use
|
|
32
|
|
- * a simple wrapper component in order to pass more than 1 child components.
|
|
33
|
|
- * TODO: remove this once React Native supports Fragment (0.52 probably).
|
|
34
|
|
- */
|
|
35
|
|
-class Fragment extends Component {
|
|
36
|
|
- /**
|
|
37
|
|
- * {@code Fragment} component's property types.
|
|
38
|
|
- *
|
|
39
|
|
- * @static
|
|
40
|
|
- */
|
|
41
|
|
- static propTypes = {
|
|
42
|
|
- children: PropTypes.node
|
|
43
|
|
- };
|
|
44
|
|
-
|
|
45
|
|
- /**
|
|
46
|
|
- * Implements React's {@link Component#render()}.
|
|
47
|
|
- *
|
|
48
|
|
- * @inheritdoc
|
|
49
|
|
- * @returns {ReactElement}
|
|
50
|
|
- */
|
|
51
|
|
- render() {
|
|
52
|
|
- return this.props.children;
|
|
53
|
|
- }
|
|
54
|
|
-}
|
|
55
|
|
-
|
|
56
|
29
|
/**
|
|
57
|
30
|
* Base (abstract) class for main App component.
|
|
58
|
31
|
*
|