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.tsx 738B

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