您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

App.web.js 970B

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 app {@code Component} on Web/React.
  11. *
  12. * @extends AbstractApp
  13. */
  14. export class App extends AbstractApp {
  15. /**
  16. * Gets a Location object from the window with information about the current
  17. * location of the document.
  18. *
  19. * @inheritdoc
  20. */
  21. getWindowLocation() {
  22. return window.location;
  23. }
  24. /**
  25. * Overrides the parent method to inject {@link AtlasKitThemeProvider} as
  26. * the top most component.
  27. *
  28. * @override
  29. */
  30. _createMainElement(component, props) {
  31. return (
  32. <AtlasKitThemeProvider mode = 'dark'>
  33. { super._createMainElement(component, props) }
  34. </AtlasKitThemeProvider>
  35. );
  36. }
  37. }