Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

App.web.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // @flow
  2. import { AtlasKitThemeProvider } from '@atlaskit/theme';
  3. import React from 'react';
  4. import { DialogContainer } from '../../base/dialog';
  5. import '../../base/responsive-ui';
  6. import '../../chat';
  7. import '../../room-lock';
  8. import '../../video-layout';
  9. import { AbstractApp } from './AbstractApp';
  10. /**
  11. * Root app {@code Component} on Web/React.
  12. *
  13. * @extends AbstractApp
  14. */
  15. export class App extends AbstractApp {
  16. /**
  17. * Gets a Location object from the window with information about the current
  18. * location of the document.
  19. *
  20. * @inheritdoc
  21. */
  22. getWindowLocation() {
  23. return window.location;
  24. }
  25. /**
  26. * Overrides the parent method to inject {@link AtlasKitThemeProvider} as
  27. * the top most component.
  28. *
  29. * @override
  30. */
  31. _createMainElement(component, props) {
  32. return (
  33. <AtlasKitThemeProvider mode = 'dark'>
  34. { super._createMainElement(component, props) }
  35. </AtlasKitThemeProvider>
  36. );
  37. }
  38. /**
  39. * Renders the platform specific dialog container.
  40. *
  41. * @returns {React$Element}
  42. */
  43. _renderDialogContainer() {
  44. return (
  45. <AtlasKitThemeProvider mode = 'dark'>
  46. <DialogContainer />
  47. </AtlasKitThemeProvider>
  48. );
  49. }
  50. }