/* global APP, interfaceConfig */ import React from 'react'; import { connect } from 'react-redux'; import { translate } from '../../base/i18n'; import { Watermarks } from '../../base/react'; import { AbstractWelcomePage, _mapStateToProps } from './AbstractWelcomePage'; /* eslint-disable require-jsdoc */ /** * The Web container rendering the welcome page. * * @extends AbstractWelcomePage */ class WelcomePage extends AbstractWelcomePage { /* eslint-enable require-jsdoc */ /** * Initializes a new WelcomePage instance. * * @param {Object} props - The read-only properties with which the new * instance is to be initialized. */ constructor(props) { super(props); this.state = { ...this.state, enableWelcomePage: true, generateRoomnames: interfaceConfig.GENERATE_ROOMNAMES_ON_WELCOME_PAGE }; // Bind event handlers so they are only bound once for every instance. this._onDisableWelcomeChange = this._onDisableWelcomeChange.bind(this); this._onKeyDown = this._onKeyDown.bind(this); this._onRoomChange = this._onRoomChange.bind(this); } /** * This method is executed when comonent is mounted. * * @inheritdoc * @returns {void} */ componentDidMount() { if (this.state.generateRoomnames) { this._updateRoomname(); } } /** * Implements React's {@link Component#render()}. * * @inheritdoc * @returns {ReactElement|null} */ render() { return (