2020-04-10 01:01:46 +08:00
|
|
|
import React, { PureComponent } from 'react';
|
2020-05-14 21:35:25 +08:00
|
|
|
import { FormattedTime, defineMessages, injectIntl } from 'react-intl';
|
2020-04-10 01:01:46 +08:00
|
|
|
import PropTypes from 'prop-types';
|
2020-05-14 21:35:25 +08:00
|
|
|
import cx from 'classnames';
|
|
|
|
import UserAvatar from '/imports/ui/components/user-avatar/component';
|
2021-04-23 09:07:48 +08:00
|
|
|
import Icon from '/imports/ui/components/connection-status/icon/component';
|
2021-03-26 05:22:50 +08:00
|
|
|
import Switch from '/imports/ui/components/switch/component';
|
|
|
|
import Service from '../service';
|
2020-04-10 01:01:46 +08:00
|
|
|
import Modal from '/imports/ui/components/modal/simple/component';
|
|
|
|
import { styles } from './styles';
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
const NETWORK_MONITORING_INTERVAL_MS = 2000;
|
|
|
|
|
2020-04-10 01:01:46 +08:00
|
|
|
const intlMessages = defineMessages({
|
|
|
|
ariaTitle: {
|
|
|
|
id: 'app.connection-status.ariaTitle',
|
|
|
|
description: 'Connection status aria title',
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
id: 'app.connection-status.title',
|
|
|
|
description: 'Connection status title',
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
id: 'app.connection-status.description',
|
|
|
|
description: 'Connection status description',
|
|
|
|
},
|
2020-05-14 21:35:25 +08:00
|
|
|
empty: {
|
|
|
|
id: 'app.connection-status.empty',
|
|
|
|
description: 'Connection status empty',
|
|
|
|
},
|
2020-04-14 02:45:14 +08:00
|
|
|
more: {
|
|
|
|
id: 'app.connection-status.more',
|
|
|
|
description: 'More about conectivity issues',
|
|
|
|
},
|
2021-08-13 03:39:04 +08:00
|
|
|
audioLabel: {
|
|
|
|
id: 'app.settings.audioTab.label',
|
|
|
|
description: 'Audio label',
|
|
|
|
},
|
|
|
|
videoLabel: {
|
|
|
|
id: 'app.settings.videoTab.label',
|
|
|
|
description: 'Video label',
|
|
|
|
},
|
2021-08-11 07:45:59 +08:00
|
|
|
copy: {
|
|
|
|
id: 'app.connection-status.copy',
|
|
|
|
description: 'Copy network data',
|
|
|
|
},
|
|
|
|
copied: {
|
|
|
|
id: 'app.connection-status.copied',
|
|
|
|
description: 'Copied network data',
|
|
|
|
},
|
2021-04-02 02:10:15 +08:00
|
|
|
offline: {
|
|
|
|
id: 'app.connection-status.offline',
|
|
|
|
description: 'Offline user',
|
|
|
|
},
|
2021-03-26 05:22:50 +08:00
|
|
|
dataSaving: {
|
|
|
|
id: 'app.settings.dataSavingTab.description',
|
|
|
|
description: 'Description of data saving',
|
|
|
|
},
|
|
|
|
webcam: {
|
|
|
|
id: 'app.settings.dataSavingTab.webcam',
|
|
|
|
description: 'Webcam data saving switch',
|
|
|
|
},
|
|
|
|
screenshare: {
|
|
|
|
id: 'app.settings.dataSavingTab.screenShare',
|
|
|
|
description: 'Screenshare data saving switch',
|
2020-05-12 21:26:08 +08:00
|
|
|
},
|
2021-05-11 04:41:52 +08:00
|
|
|
on: {
|
|
|
|
id: 'app.switch.onLabel',
|
|
|
|
description: 'label for toggle switch on state',
|
|
|
|
},
|
|
|
|
off: {
|
|
|
|
id: 'app.switch.offLabel',
|
|
|
|
description: 'label for toggle switch off state',
|
|
|
|
},
|
2020-04-10 01:01:46 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
const propTypes = {
|
|
|
|
closeModal: PropTypes.func.isRequired,
|
|
|
|
intl: PropTypes.shape({
|
|
|
|
formatMessage: PropTypes.func.isRequired,
|
|
|
|
}).isRequired,
|
|
|
|
};
|
|
|
|
|
2021-03-26 05:22:50 +08:00
|
|
|
const isConnectionStatusEmpty = (connectionStatus) => {
|
|
|
|
// Check if it's defined
|
|
|
|
if (!connectionStatus) return true;
|
|
|
|
|
|
|
|
// Check if it's an array
|
|
|
|
if (!Array.isArray(connectionStatus)) return true;
|
|
|
|
|
|
|
|
// Check if is empty
|
|
|
|
if (connectionStatus.length === 0) return true;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
};
|
|
|
|
|
2020-04-10 01:01:46 +08:00
|
|
|
class ConnectionStatusComponent extends PureComponent {
|
2021-03-26 05:22:50 +08:00
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
const { intl } = this.props;
|
|
|
|
|
2021-03-26 05:22:50 +08:00
|
|
|
this.help = Service.getHelp();
|
2021-08-13 03:39:04 +08:00
|
|
|
this.state = {
|
|
|
|
dataSaving: props.dataSaving,
|
|
|
|
hasNetworkData: false,
|
|
|
|
networkData: {
|
|
|
|
user: {
|
|
|
|
|
|
|
|
},
|
|
|
|
audio: {
|
|
|
|
audioCurrentUploadRate: 0,
|
|
|
|
audioCurrentDownloadRate: 0,
|
|
|
|
},
|
|
|
|
video: {
|
|
|
|
videoCurrentUploadRate: 0,
|
|
|
|
videoCurrentDownloadRate: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2021-05-11 04:41:52 +08:00
|
|
|
this.displaySettingsStatus = this.displaySettingsStatus.bind(this);
|
2021-08-13 03:39:04 +08:00
|
|
|
this.rateInterval = null;
|
|
|
|
|
|
|
|
this.audioLabel = (intl.formatMessage(intlMessages.audioLabel)).charAt(0);
|
|
|
|
this.videoLabel = (intl.formatMessage(intlMessages.videoLabel)).charAt(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
async componentDidMount() {
|
|
|
|
this.startMonitoringNetwork();
|
|
|
|
}
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
2021-08-16 20:21:59 +08:00
|
|
|
Meteor.clearInterval(this.rateInterval);
|
2021-03-26 05:22:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
handleDataSavingChange(key) {
|
|
|
|
const { dataSaving } = this.state;
|
|
|
|
dataSaving[key] = !dataSaving[key];
|
|
|
|
this.setState(dataSaving);
|
|
|
|
}
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
/**
|
|
|
|
* Start monitoring the network data.
|
|
|
|
* @return {Promise} A Promise that resolves when process started.
|
|
|
|
*/
|
|
|
|
async startMonitoringNetwork() {
|
|
|
|
let previousData = await Service.getNetworkData();
|
2021-08-16 20:21:59 +08:00
|
|
|
this.rateInterval = Meteor.setInterval(async () => {
|
2021-08-13 03:39:04 +08:00
|
|
|
const data = await Service.getNetworkData();
|
|
|
|
|
|
|
|
const {
|
|
|
|
outbound: audioCurrentUploadRate,
|
|
|
|
inbound: audioCurrentDownloadRate,
|
2021-08-14 04:24:44 +08:00
|
|
|
} = Service.calculateBitsPerSecond(data.audio, previousData.audio);
|
2021-08-13 03:39:04 +08:00
|
|
|
|
|
|
|
const audio = {
|
|
|
|
audioCurrentUploadRate,
|
|
|
|
audioCurrentDownloadRate,
|
2021-08-14 04:24:44 +08:00
|
|
|
transport: data.audio.transportStats,
|
2021-08-13 03:39:04 +08:00
|
|
|
};
|
|
|
|
|
2021-08-14 04:24:44 +08:00
|
|
|
const {
|
|
|
|
outbound: videoCurrentUploadRate,
|
|
|
|
inbound: videoCurrentDownloadRate,
|
|
|
|
} = Service.calculateBitsPerSecondFromMultipleData(data.video,
|
|
|
|
previousData.video);
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
const video = {
|
2021-08-14 04:24:44 +08:00
|
|
|
videoCurrentUploadRate,
|
|
|
|
videoCurrentDownloadRate,
|
2021-08-13 03:39:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
const { user } = data;
|
|
|
|
|
|
|
|
const networkData = {
|
|
|
|
user,
|
|
|
|
audio,
|
|
|
|
video,
|
|
|
|
};
|
|
|
|
|
|
|
|
previousData = data;
|
|
|
|
this.setState({
|
|
|
|
networkData,
|
|
|
|
hasNetworkData: true,
|
|
|
|
});
|
|
|
|
}, NETWORK_MONITORING_INTERVAL_MS);
|
|
|
|
}
|
|
|
|
|
2020-05-14 21:35:25 +08:00
|
|
|
renderEmpty() {
|
|
|
|
const { intl } = this.props;
|
|
|
|
|
|
|
|
return (
|
2021-04-01 21:55:27 +08:00
|
|
|
<div
|
|
|
|
className={styles.item}
|
|
|
|
data-test="connectionStatusItemEmpty"
|
|
|
|
>
|
2020-05-14 21:35:25 +08:00
|
|
|
<div className={styles.left}>
|
|
|
|
<div className={styles.name}>
|
|
|
|
<div className={styles.text}>
|
|
|
|
{intl.formatMessage(intlMessages.empty)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-05-11 04:41:52 +08:00
|
|
|
displaySettingsStatus(status) {
|
|
|
|
const { intl } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<span className={styles.toggleLabel}>
|
|
|
|
{status ? intl.formatMessage(intlMessages.on)
|
|
|
|
: intl.formatMessage(intlMessages.off)}
|
|
|
|
</span>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
/**
|
|
|
|
* Copy network data to clipboard
|
|
|
|
* @param {Object} e Event object from click event
|
|
|
|
* @return {Promise} A Promise that is resolved after data is copied.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2021-08-11 07:45:59 +08:00
|
|
|
async copyNetworkData(e) {
|
2021-08-11 22:10:49 +08:00
|
|
|
const { intl } = this.props;
|
2021-08-13 03:39:04 +08:00
|
|
|
const {
|
|
|
|
networkData,
|
|
|
|
hasNetworkData,
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
if (!hasNetworkData) return;
|
|
|
|
|
2021-08-11 22:10:49 +08:00
|
|
|
const { target: copyButton } = e;
|
|
|
|
|
|
|
|
copyButton.innerHTML = intl.formatMessage(intlMessages.copied);
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
const data = JSON.stringify(networkData, null, 2);
|
|
|
|
|
2021-08-11 22:10:49 +08:00
|
|
|
await navigator.clipboard.writeText(data);
|
|
|
|
|
|
|
|
this.copyNetworkDataTimeout = setTimeout(() => {
|
|
|
|
copyButton.innerHTML = intl.formatMessage(intlMessages.copy);
|
|
|
|
}, 1000);
|
2021-08-11 07:45:59 +08:00
|
|
|
}
|
|
|
|
|
2020-05-14 21:35:25 +08:00
|
|
|
renderConnections() {
|
2020-05-12 21:26:08 +08:00
|
|
|
const {
|
|
|
|
connectionStatus,
|
|
|
|
intl,
|
|
|
|
} = this.props;
|
2020-05-14 21:35:25 +08:00
|
|
|
|
2021-03-26 05:22:50 +08:00
|
|
|
if (isConnectionStatusEmpty(connectionStatus)) return this.renderEmpty();
|
2020-05-14 21:35:25 +08:00
|
|
|
|
|
|
|
return connectionStatus.map((conn, index) => {
|
|
|
|
const dateTime = new Date(conn.timestamp);
|
|
|
|
const itemStyle = {};
|
2021-03-26 05:22:50 +08:00
|
|
|
itemStyle[styles.even] = (index + 1) % 2 === 0;
|
2020-05-12 21:26:08 +08:00
|
|
|
|
2021-04-02 02:10:15 +08:00
|
|
|
const textStyle = {};
|
|
|
|
textStyle[styles.offline] = conn.offline;
|
2020-05-14 21:35:25 +08:00
|
|
|
return (
|
|
|
|
<div
|
|
|
|
key={index}
|
|
|
|
className={cx(styles.item, itemStyle)}
|
2021-04-01 21:55:27 +08:00
|
|
|
data-test="connectionStatusItemUser"
|
2020-05-14 21:35:25 +08:00
|
|
|
>
|
|
|
|
<div className={styles.left}>
|
|
|
|
<div className={styles.avatar}>
|
|
|
|
<UserAvatar
|
2020-09-15 07:13:47 +08:00
|
|
|
className={cx({ [styles.initials]: conn.avatar.length === 0 })}
|
2020-05-14 21:35:25 +08:00
|
|
|
you={conn.you}
|
2020-09-15 07:13:47 +08:00
|
|
|
avatar={conn.avatar}
|
2020-05-14 21:35:25 +08:00
|
|
|
moderator={conn.moderator}
|
2020-05-15 01:33:32 +08:00
|
|
|
color={conn.color}
|
2020-05-14 21:35:25 +08:00
|
|
|
>
|
|
|
|
{conn.name.toLowerCase().slice(0, 2)}
|
|
|
|
</UserAvatar>
|
|
|
|
</div>
|
2020-05-12 21:26:08 +08:00
|
|
|
|
2020-05-14 21:35:25 +08:00
|
|
|
<div className={styles.name}>
|
2021-04-07 08:39:18 +08:00
|
|
|
<div
|
|
|
|
className={cx(styles.text, textStyle)}
|
|
|
|
data-test={conn.offline ? "offlineUser" : null}
|
|
|
|
>
|
2020-05-14 21:35:25 +08:00
|
|
|
{conn.name}
|
2021-04-02 02:10:15 +08:00
|
|
|
{conn.offline ? ` (${intl.formatMessage(intlMessages.offline)})` : null}
|
2020-05-14 21:35:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.status}>
|
2021-04-23 09:07:48 +08:00
|
|
|
<div className={styles.icon}>
|
|
|
|
<Icon level={conn.level} />
|
|
|
|
</div>
|
2020-05-14 21:35:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.right}>
|
|
|
|
<div className={styles.time}>
|
|
|
|
<time dateTime={dateTime}>
|
|
|
|
<FormattedTime value={dateTime} />
|
|
|
|
</time>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-03-26 05:22:50 +08:00
|
|
|
renderDataSaving() {
|
|
|
|
const {
|
|
|
|
intl,
|
|
|
|
dataSaving,
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
const {
|
|
|
|
viewParticipantsWebcams,
|
|
|
|
viewScreenshare,
|
|
|
|
} = dataSaving;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={styles.dataSaving}>
|
|
|
|
<div className={styles.description}>
|
|
|
|
{intl.formatMessage(intlMessages.dataSaving)}
|
|
|
|
</div>
|
2021-05-11 04:41:52 +08:00
|
|
|
|
|
|
|
<div className={styles.row}>
|
|
|
|
<div className={styles.col} aria-hidden="true">
|
|
|
|
<div className={styles.formElement}>
|
|
|
|
<span className={styles.label}>
|
|
|
|
{intl.formatMessage(intlMessages.webcam)}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.col}>
|
|
|
|
<div className={cx(styles.formElement, styles.pullContentRight)}>
|
|
|
|
{this.displaySettingsStatus(viewParticipantsWebcams)}
|
|
|
|
<Switch
|
|
|
|
icons={false}
|
|
|
|
defaultChecked={viewParticipantsWebcams}
|
|
|
|
onChange={() => this.handleDataSavingChange('viewParticipantsWebcams')}
|
|
|
|
ariaLabelledBy="webcam"
|
|
|
|
ariaLabel={intl.formatMessage(intlMessages.webcam)}
|
|
|
|
data-test="dataSavingWebcams"
|
|
|
|
showToggleLabel={false}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-26 05:22:50 +08:00
|
|
|
</div>
|
2021-05-11 04:41:52 +08:00
|
|
|
|
|
|
|
<div className={styles.row}>
|
|
|
|
<div className={styles.col} aria-hidden="true">
|
|
|
|
<div className={styles.formElement}>
|
|
|
|
<span className={styles.label}>
|
|
|
|
{intl.formatMessage(intlMessages.screenshare)}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.col}>
|
|
|
|
<div className={cx(styles.formElement, styles.pullContentRight)}>
|
|
|
|
{this.displaySettingsStatus(viewScreenshare)}
|
|
|
|
<Switch
|
|
|
|
icons={false}
|
|
|
|
defaultChecked={viewScreenshare}
|
|
|
|
onChange={() => this.handleDataSavingChange('viewScreenshare')}
|
|
|
|
ariaLabelledBy="screenshare"
|
|
|
|
ariaLabel={intl.formatMessage(intlMessages.screenshare)}
|
|
|
|
data-test="dataSavingScreenshare"
|
|
|
|
showToggleLabel={false}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-26 05:22:50 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-08-13 03:39:04 +08:00
|
|
|
/**
|
|
|
|
* Render network data , containing information abount current upload and
|
|
|
|
* download rates
|
|
|
|
* @return {Object} The component to be renderized.
|
|
|
|
*/
|
|
|
|
renderNetworkData() {
|
|
|
|
const {
|
|
|
|
audioLabel,
|
|
|
|
videoLabel,
|
|
|
|
} = this;
|
|
|
|
|
|
|
|
const { networkData } = this.state;
|
|
|
|
|
|
|
|
const {
|
|
|
|
audioCurrentUploadRate,
|
|
|
|
audioCurrentDownloadRate,
|
|
|
|
} = networkData.audio;
|
|
|
|
|
|
|
|
const {
|
|
|
|
videoCurrentUploadRate,
|
|
|
|
videoCurrentDownloadRate,
|
|
|
|
} = networkData.video;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className={styles.networkData}
|
|
|
|
>
|
|
|
|
<p>
|
|
|
|
{`↑${audioLabel}: ${audioCurrentUploadRate} kbps |`}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{`↓${audioLabel}: ${audioCurrentDownloadRate} kbps |`}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{`↑${videoLabel}: ${videoCurrentUploadRate} kbps |`}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{`↓${videoLabel}: ${videoCurrentDownloadRate} kbps`}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders the clipboard's copy button, for network stats.
|
|
|
|
* @return {Object} - The component to be renderized
|
|
|
|
*/
|
|
|
|
renderCopyDataButton() {
|
|
|
|
const { intl } = this.props;
|
|
|
|
|
|
|
|
const { hasNetworkData } = this.state;
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
className={cx(styles.copy, !hasNetworkData ? styles.disabled : '')}
|
|
|
|
role="button"
|
|
|
|
onClick={this.copyNetworkData.bind(this)}
|
|
|
|
onKeyPress={this.copyNetworkData.bind(this)}
|
|
|
|
tabIndex={0}
|
|
|
|
>
|
|
|
|
<p>{intl.formatMessage(intlMessages.copy)}</p>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-04-10 01:01:46 +08:00
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
closeModal,
|
|
|
|
intl,
|
|
|
|
} = this.props;
|
|
|
|
|
2021-03-26 05:22:50 +08:00
|
|
|
const { dataSaving } = this.state;
|
2021-02-25 21:14:09 +08:00
|
|
|
|
2020-04-10 01:01:46 +08:00
|
|
|
return (
|
|
|
|
<Modal
|
|
|
|
overlayClassName={styles.overlay}
|
|
|
|
className={styles.modal}
|
2021-03-26 05:22:50 +08:00
|
|
|
onRequestClose={() => closeModal(dataSaving, intl)}
|
2020-04-10 01:01:46 +08:00
|
|
|
hideBorder
|
|
|
|
contentLabel={intl.formatMessage(intlMessages.ariaTitle)}
|
|
|
|
>
|
|
|
|
<div className={styles.container}>
|
|
|
|
<div className={styles.header}>
|
|
|
|
<h2 className={styles.title}>
|
|
|
|
{intl.formatMessage(intlMessages.title)}
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div className={styles.description}>
|
2021-04-02 02:10:15 +08:00
|
|
|
{intl.formatMessage(intlMessages.description)}
|
|
|
|
{' '}
|
2021-03-26 05:22:50 +08:00
|
|
|
{this.help
|
2021-02-25 21:14:09 +08:00
|
|
|
&& (
|
2021-03-26 05:22:50 +08:00
|
|
|
<a href={this.help} target="_blank" rel="noopener noreferrer">
|
2021-02-25 21:14:09 +08:00
|
|
|
{`(${intl.formatMessage(intlMessages.more)})`}
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
}
|
2020-04-10 01:01:46 +08:00
|
|
|
</div>
|
2021-08-13 03:39:04 +08:00
|
|
|
<div className={styles.networkDataContainer}>
|
|
|
|
{this.renderNetworkData()}
|
|
|
|
{this.renderCopyDataButton()}
|
2021-08-11 07:45:59 +08:00
|
|
|
</div>
|
2021-03-26 05:22:50 +08:00
|
|
|
{this.renderDataSaving()}
|
2020-04-10 01:01:46 +08:00
|
|
|
<div className={styles.content}>
|
2020-05-14 21:35:25 +08:00
|
|
|
<div className={styles.wrapper}>
|
|
|
|
{this.renderConnections()}
|
|
|
|
</div>
|
2020-04-10 01:01:46 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ConnectionStatusComponent.propTypes = propTypes;
|
|
|
|
|
|
|
|
export default injectIntl(ConnectionStatusComponent);
|