You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NoMobileApp.js 1.2KB

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