2018-07-11 09:42:43 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-10-23 12:18:12 +00:00
|
|
|
import { AtlasKitThemeProvider } from '@atlaskit/theme';
|
|
|
|
import React from 'react';
|
|
|
|
|
2018-09-03 13:53:24 +00:00
|
|
|
import { DialogContainer } from '../../base/dialog';
|
2019-07-10 11:02:27 +00:00
|
|
|
import '../../base/user-interaction';
|
2018-01-23 21:31:54 +00:00
|
|
|
import '../../chat';
|
2019-05-29 21:17:07 +00:00
|
|
|
import '../../external-api';
|
2019-11-08 11:38:42 +00:00
|
|
|
import '../../no-audio-signal';
|
2019-07-12 13:08:34 +00:00
|
|
|
import '../../power-monitor';
|
2017-03-07 03:43:41 +00:00
|
|
|
import '../../room-lock';
|
2019-07-23 20:56:05 +00:00
|
|
|
import '../../talk-while-muted';
|
2018-05-17 22:42:21 +00:00
|
|
|
import '../../video-layout';
|
2017-03-07 03:43:41 +00:00
|
|
|
|
2017-07-21 21:12:02 +00:00
|
|
|
import { AbstractApp } from './AbstractApp';
|
|
|
|
|
2016-11-23 21:46:46 +00:00
|
|
|
/**
|
2018-07-12 16:16:57 +00:00
|
|
|
* Root app {@code Component} on Web/React.
|
2016-11-23 21:46:46 +00:00
|
|
|
*
|
|
|
|
* @extends AbstractApp
|
|
|
|
*/
|
|
|
|
export class App extends AbstractApp {
|
2017-10-23 12:18:12 +00:00
|
|
|
/**
|
|
|
|
* Overrides the parent method to inject {@link AtlasKitThemeProvider} as
|
|
|
|
* the top most component.
|
|
|
|
*
|
|
|
|
* @override
|
|
|
|
*/
|
2018-07-11 09:42:43 +00:00
|
|
|
_createMainElement(component, props) {
|
2017-10-23 12:18:12 +00:00
|
|
|
return (
|
|
|
|
<AtlasKitThemeProvider mode = 'dark'>
|
2018-07-11 09:42:43 +00:00
|
|
|
{ super._createMainElement(component, props) }
|
2017-10-23 12:18:12 +00:00
|
|
|
</AtlasKitThemeProvider>
|
|
|
|
);
|
|
|
|
}
|
2018-09-03 13:53:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders the platform specific dialog container.
|
|
|
|
*
|
|
|
|
* @returns {React$Element}
|
|
|
|
*/
|
|
|
|
_renderDialogContainer() {
|
|
|
|
return (
|
|
|
|
<AtlasKitThemeProvider mode = 'dark'>
|
|
|
|
<DialogContainer />
|
|
|
|
</AtlasKitThemeProvider>
|
|
|
|
);
|
|
|
|
}
|
2016-11-23 21:46:46 +00:00
|
|
|
}
|