2019-01-13 19:34:38 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
2019-04-11 08:28:51 +00:00
|
|
|
import { InputDialog } from '../../../base/dialog';
|
2020-05-20 10:57:03 +00:00
|
|
|
import { connect } from '../../../base/redux';
|
2019-04-11 08:28:51 +00:00
|
|
|
import AbstractDisplayNamePrompt from '../AbstractDisplayNamePrompt';
|
2019-01-13 19:34:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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' />
|
2019-01-13 19:34:38 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSetDisplayName: string => boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect()(DisplayNamePrompt);
|