mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 16:17:46 +00:00
* feat(info): new dialog design - Add display of a dial in number. - Add a static page to show a full list of dial in numbers. - Add password management. - Invite modal will be changed soon to remove password and dial-in. * squash: add classes for torture tests * squash: class for local lock for torture tests * squash: more classes for torture tests * squash: more classes, work around linter * squash: remove unused string? * squash: work around linter and avoid react warnings * squash: pixel push, add bold * squash: font size bump * squash: NumbersTable -> NumbersList * squash: document response from fetching numbers * squash: showEdit -> editEnabled, pixel push padding for alignment * squash: pin -> conferenceID * squash: prepare to receive defaultCountry from api
61 lines
1.5 KiB
JavaScript
61 lines
1.5 KiB
JavaScript
import React, { Component } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
|
|
/**
|
|
* React {@code Component} responsible for displaying a telephone number and
|
|
* conference ID for dialing into a conference.
|
|
*
|
|
* @extends Component
|
|
*/
|
|
class DialInNumber extends Component {
|
|
/**
|
|
* {@code DialInNumber} component's property types.
|
|
*
|
|
* @static
|
|
*/
|
|
static propTypes = {
|
|
/**
|
|
* The numberic identifier for the current conference, used after
|
|
* dialing a the number to join the conference.
|
|
*/
|
|
conferenceID: PropTypes.number,
|
|
|
|
/**
|
|
* The phone number to dial to begin the process of dialing into a
|
|
* conference.
|
|
*/
|
|
phoneNumber: PropTypes.string,
|
|
|
|
/**
|
|
* Invoked to obtain translated strings.
|
|
*/
|
|
t: PropTypes.func
|
|
};
|
|
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
const { conferenceID, phoneNumber } = this.props;
|
|
|
|
return (
|
|
<div className = 'dial-in-number'>
|
|
<span className = 'phone-number'>
|
|
{ this.props.t('info.dialInNumber', { phoneNumber }) }
|
|
</span>
|
|
<span className = 'conference-id'>
|
|
{ this.props.t(
|
|
'info.dialInConferenceID', { conferenceID }) }
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default translate(DialInNumber);
|