jiti-meet/react/features/display-name/components/native/DisplayNamePrompt.js

31 lines
771 B
JavaScript
Raw Normal View History

// @flow
import React from 'react';
import { InputDialog } from '../../../base/dialog';
2020-05-20 10:57:03 +00:00
import { connect } from '../../../base/redux';
import AbstractDisplayNamePrompt from '../AbstractDisplayNamePrompt';
/**
* Implements a component to render a display name prompt.
*/
class DisplayNamePrompt extends AbstractDisplayNamePrompt<*> {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
*/
render() {
return (
<InputDialog
2022-02-04 10:20:47 +00:00
descriptionKey = 'dialog.enterDisplayName'
onSubmit = { this._onSetDisplayName }
titleKey = 'dialog.displayNameRequired' />
);
}
_onSetDisplayName: string => boolean;
}
export default connect()(DisplayNamePrompt);