You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DisplayNamePrompt.native.js 705B

123456789101112131415161718192021222324252627282930
  1. // @flow
  2. import React from 'react';
  3. import { connect } from '../../base/redux';
  4. import { InputDialog } from '../../base/dialog';
  5. import AbstractDisplayNamePrompt from './AbstractDisplayNamePrompt';
  6. /**
  7. * Implements a component to render a display name prompt.
  8. */
  9. class DisplayNamePrompt extends AbstractDisplayNamePrompt<*> {
  10. /**
  11. * Implements React's {@link Component#render()}.
  12. *
  13. * @inheritdoc
  14. */
  15. render() {
  16. return (
  17. <InputDialog
  18. contentKey = 'dialog.enterDisplayName'
  19. onSubmit = { this._onSetDisplayName } />
  20. );
  21. }
  22. _onSetDisplayName: string => boolean;
  23. }
  24. export default connect()(DisplayNamePrompt);