jiti-meet/react/features/app/components/App.web.js

48 lines
1.0 KiB
JavaScript
Raw Normal View History

import { AtlasKitThemeProvider } from '@atlaskit/theme';
import React from 'react';
import '../../base/responsive-ui';
import '../../chat';
import '../../room-lock';
import '../../video-layout';
2017-07-21 21:12:02 +00:00
import { AbstractApp } from './AbstractApp';
/**
* Root application component.
*
* @extends AbstractApp
*/
export class App extends AbstractApp {
/**
* App component's property types.
*
* @static
*/
static propTypes = AbstractApp.propTypes;
/**
* Overrides the parent method to inject {@link AtlasKitThemeProvider} as
* the top most component.
*
* @override
*/
_createElement(component, props) {
return (
<AtlasKitThemeProvider mode = 'dark'>
{ super._createElement(component, props) }
</AtlasKitThemeProvider>
);
}
2017-01-15 19:05:17 +00:00
/**
* Gets a Location object from the window with information about the current
* location of the document.
*
* @inheritdoc
*/
2017-03-02 03:33:49 +00:00
getWindowLocation() {
2017-01-15 19:05:17 +00:00
return window.location;
}
}