Files
jitsi-meet/react/features/invite/components/dial-in-summary/ConferenceID.web.js
Дамян Минков ea4d49f2a0 Adds new format of phoneList service and re-design dial in numbers page. (#3903)
* Adds new format of phoneList service and re-design dial in numbers page.

Adds flags and country names (with translations) for the numbers if using the new format.

* Fixes tests and fixes get default number.

* Updates swagger with new format.

* Moves html back yo table.

Fixes displaying on mobile and also the tel: URI generation. The tel: URI is tested on Android and iOS and seems to work (Android was not interpreting 'p', but both seems to like ',').

* Fixes a wrong return statement.

* Small fixes.
2019-02-26 13:32:46 +00:00

60 lines
1.3 KiB
JavaScript

/* @flow */
import React, { Component } from 'react';
import { translate } from '../../../base/i18n';
/**
* The type of the React {@code Component} props of {@link ConferenceID}.
*/
type Props = {
/**
* The conference ID for dialing in.
*/
conferenceID: number,
/**
* The name of the conference.
*/
conferenceName: ?string,
/**
* Invoked to obtain translated strings.
*/
t: Function
};
/**
* Displays a conference ID used as a pin for dialing into a conference.
*
* @extends Component
*/
class ConferenceID extends Component<Props> {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
const { conferenceID, conferenceName, t } = this.props;
return (
<div className = 'dial-in-conference-id'>
<div className = 'dial-in-conference-name'>
{ conferenceName }
</div>
<div className = 'dial-in-conference-description'>
{ t('info.dialANumber') }
</div>
<div className = 'dial-in-conference-pin'>
{ `${t('info.dialInConferenceID')} ${conferenceID}` }
</div>
</div>
);
}
}
export default translate(ConferenceID);