2017-02-07 14:45:51 +00:00
|
|
|
/* @flow */
|
|
|
|
|
2017-02-03 12:51:39 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
2018-04-16 12:44:08 +00:00
|
|
|
import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
|
2017-02-16 20:00:54 +00:00
|
|
|
|
2017-02-07 14:45:51 +00:00
|
|
|
declare var interfaceConfig: Object;
|
|
|
|
|
2017-02-03 12:51:39 +00:00
|
|
|
/**
|
2017-02-07 14:45:51 +00:00
|
|
|
* React component representing no mobile app page.
|
2017-02-03 12:51:39 +00:00
|
|
|
*
|
|
|
|
* @class NoMobileApp
|
|
|
|
*/
|
2017-10-24 22:26:56 +00:00
|
|
|
export default class NoMobileApp extends Component<*> {
|
2018-04-16 12:44:08 +00:00
|
|
|
/**
|
|
|
|
* Implements the Component's componentDidMount method.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
|
|
|
componentDidMount() {
|
|
|
|
sendAnalytics(
|
|
|
|
createDeepLinkingPageEvent(
|
|
|
|
'displayed', 'noMobileApp', { isMobileBrowser: true }));
|
|
|
|
}
|
|
|
|
|
2017-02-03 12:51:39 +00:00
|
|
|
/**
|
|
|
|
* Renders the component.
|
|
|
|
*
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
const ns = 'no-mobile-app';
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className = { ns }>
|
|
|
|
<h2 className = { `${ns}__title` }>
|
2017-02-28 04:31:55 +00:00
|
|
|
Video chat isn't available on mobile.
|
2017-02-03 12:51:39 +00:00
|
|
|
</h2>
|
|
|
|
<p className = { `${ns}__description` }>
|
2018-04-14 00:00:40 +00:00
|
|
|
Please use { interfaceConfig.NATIVE_APP_NAME } on desktop to
|
|
|
|
join calls.
|
2017-02-03 12:51:39 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|