import React, { Component } from 'react'; import { Conference } from '../../conference'; /** * The web container rendering the welcome page. */ export default class WelcomePage extends Component { /** * Implements React's {@link Component#render()}. * * @inheritdoc * @returns {ReactElement|null} */ render() { // FIXME The rendering of Conference bellow is a very quick and dirty // temporary fix for the following issue: when the WelcomePage is // disabled, app.js expects Conference to be rendered already and only // then it builds a room name but the App component expects the room // name to be built already (by looking at the window's location) in // order to choose between WelcomePage and Conference. return (
{ this._renderHeader() } { this._renderMain() }
); } /** * Renders a feature with a specific index. * * @param {number} index - The index of the feature to render. * @private * @returns {ReactElement} */ _renderFeature(index) { return (
); } /** * Renders a row of features. * * @param {number} beginIndex - The inclusive feature index to begin the row * with. * @param {number} endIndex - The exclusive feature index to end the row * with. * @private * @returns {ReactElement} */ _renderFeatureRow(beginIndex, endIndex) { const features = []; for (let index = beginIndex; index < endIndex; ++index) { features.push(this._renderFeature(index)); } return (
{ features }
); } /** * Renders the header part of this WelcomePage. * * @private * @returns {ReactElement|null} */ _renderHeader() { return (
jitsi.org