Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // @flow
  2. import { AtlasKitThemeProvider } from '@atlaskit/theme';
  3. import React from 'react';
  4. import '../../base/responsive-ui';
  5. import '../../chat';
  6. import '../../room-lock';
  7. import '../../video-layout';
  8. import { AbstractApp } from './AbstractApp';
  9. /**
  10. * Root application component.
  11. *
  12. * @extends AbstractApp
  13. */
  14. export class App extends AbstractApp {
  15. /**
  16. * Overrides the parent method to inject {@link AtlasKitThemeProvider} as
  17. * the top most component.
  18. *
  19. * @override
  20. */
  21. _createMainElement(component, props) {
  22. return (
  23. <AtlasKitThemeProvider mode = 'dark'>
  24. { super._createMainElement(component, props) }
  25. </AtlasKitThemeProvider>
  26. );
  27. }
  28. /**
  29. * Gets a Location object from the window with information about the current
  30. * location of the document.
  31. *
  32. * @inheritdoc
  33. */
  34. getWindowLocation() {
  35. return window.location;
  36. }
  37. }