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

32 lines
722 B
JavaScript
Raw Normal View History

// @flow
import React from 'react';
import { connect } from 'react-redux';
import { InputDialog } from '../../base/dialog';
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
contentKey = 'dialog.enterDisplayName'
onSubmit = { this._onSetDisplayName } />
);
}
_onSetDisplayName: string => boolean;
}
2019-03-19 15:42:25 +00:00
// $FlowExpectedError
export default connect()(DisplayNamePrompt);