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

NoMobileApp.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
  4. declare var interfaceConfig: Object;
  5. /**
  6. * React component representing no mobile app page.
  7. *
  8. * @class NoMobileApp
  9. */
  10. export default class NoMobileApp extends Component<*> {
  11. /**
  12. * Implements the Component's componentDidMount method.
  13. *
  14. * @inheritdoc
  15. */
  16. componentDidMount() {
  17. sendAnalytics(
  18. createDeepLinkingPageEvent(
  19. 'displayed', 'noMobileApp', { isMobileBrowser: true }));
  20. }
  21. /**
  22. * Renders the component.
  23. *
  24. * @returns {ReactElement}
  25. */
  26. render() {
  27. const ns = 'no-mobile-app';
  28. return (
  29. <div className = { ns }>
  30. <h2 className = { `${ns}__title` }>
  31. Video chat isn't available on mobile.
  32. </h2>
  33. <p className = { `${ns}__description` }>
  34. Please use { interfaceConfig.NATIVE_APP_NAME } on desktop to
  35. join calls.
  36. </p>
  37. </div>
  38. );
  39. }
  40. }