mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-13 13:52:29 +00:00
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.
50 lines
1.2 KiB
JavaScript
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>
|
|
);
|
|
}
|
|
}
|