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

App.web.js 1.0KB

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