Files
jitsi-meet/react/features/deep-linking/components/NoMobileApp.js
hristoterezov f14095ecfc feat(deep_linking): add analytics
In order to be able to add analytics to the deep-linking pages the
lib-jitsi-meet initialization has been moved so it happens earlier.

The introduced `initPromise` will eventually disappear, once conference is
migrated into React and / or support for Temasys is dropped. At that stage, it
can be turned into a sync function which all platforms share.
2018-04-26 10:11:34 +02:00

50 lines
1.2 KiB
JavaScript

/* @flow */
import React, { Component } from 'react';
import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
import { HideNotificationBarStyle } from '../../base/react';
declare var interfaceConfig: Object;
/**
* React component representing no mobile app page.
*
* @class NoMobileApp
*/
export default class NoMobileApp extends Component<*> {
/**
* Implements the Component's componentDidMount method.
*
* @inheritdoc
*/
componentDidMount() {
sendAnalytics(
createDeepLinkingPageEvent(
'displayed', 'noMobileApp', { isMobileBrowser: true }));
}
/**
* Renders the component.
*
* @returns {ReactElement}
*/
render() {
const ns = 'no-mobile-app';
return (
<div className = { ns }>
<h2 className = { `${ns}__title` }>
Video chat isn't available on mobile.
</h2>
<p className = { `${ns}__description` }>
Please use { interfaceConfig.NATIVE_APP_NAME } on desktop to
join calls.
</p>
<HideNotificationBarStyle />
</div>
);
}
}