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.

actions.js 468B

123456789101112131415161718
  1. // @flow
  2. import { openDialog } from '../../features/base/dialog';
  3. import { DisplayNamePrompt } from './components';
  4. /**
  5. * Signals to open a dialog with the {@code DisplayNamePrompt} component.
  6. *
  7. * @param {?Function} onPostSubmit - The function to invoke after a successful
  8. * submit of the dialog.
  9. * @returns {Object}
  10. */
  11. export function openDisplayNamePrompt(onPostSubmit: ?Function) {
  12. return openDialog(DisplayNamePrompt, {
  13. onPostSubmit
  14. });
  15. }