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';
|
|
|
|
|
2021-10-08 08:05:16 +00:00
|
|
|
import GlobalStyles from '../../base/ui/components/GlobalStyles';
|
2022-08-01 07:04:23 +00:00
|
|
|
import JitsiThemeProvider from '../../base/ui/components/JitsiThemeProvider.web';
|
2022-09-29 10:26:34 +00:00
|
|
|
import DialogContainer from '../../base/ui/components/web/DialogContainer';
|
2020-01-29 12:30:17 +00:00
|
|
|
import { ChromeExtensionBanner } from '../../chrome-extension-banner';
|
2017-03-07 03:43:41 +00:00
|
|
|
|
2017-07-21 21:12:02 +00:00
|
|
|
import { AbstractApp } from './AbstractApp';
|
|
|
|
|
2020-06-04 14:09:13 +00:00
|
|
|
// Register middlewares and reducers.
|
|
|
|
import '../middlewares';
|
|
|
|
import '../reducers';
|
|
|
|
|
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
|
|
|
*
|
2021-11-04 21:10:43 +00:00
|
|
|
* @augments AbstractApp
|
2016-11-23 21:46:46 +00:00
|
|
|
*/
|
|
|
|
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 (
|
2021-04-29 09:24:39 +00:00
|
|
|
<JitsiThemeProvider>
|
|
|
|
<AtlasKitThemeProvider mode = 'dark'>
|
2021-10-08 08:05:16 +00:00
|
|
|
<GlobalStyles />
|
2021-04-29 09:24:39 +00:00
|
|
|
<ChromeExtensionBanner />
|
|
|
|
{ super._createMainElement(component, props) }
|
|
|
|
</AtlasKitThemeProvider>
|
|
|
|
</JitsiThemeProvider>
|
2017-10-23 12:18:12 +00:00
|
|
|
);
|
|
|
|
}
|
2018-09-03 13:53:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders the platform specific dialog container.
|
|
|
|
*
|
|
|
|
* @returns {React$Element}
|
|
|
|
*/
|
|
|
|
_renderDialogContainer() {
|
|
|
|
return (
|
2021-08-20 08:53:11 +00:00
|
|
|
<JitsiThemeProvider>
|
|
|
|
<AtlasKitThemeProvider mode = 'dark'>
|
|
|
|
<DialogContainer />
|
|
|
|
</AtlasKitThemeProvider>
|
|
|
|
</JitsiThemeProvider>
|
2018-09-03 13:53:24 +00:00
|
|
|
);
|
|
|
|
}
|
2016-11-23 21:46:46 +00:00
|
|
|
}
|