2019-01-13 19:33:28 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-07-28 17:58:04 +00:00
|
|
|
import { openDialog } from '../../features/base/dialog';
|
|
|
|
|
|
|
|
import { DisplayNamePrompt } from './components';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Signals to open a dialog with the {@code DisplayNamePrompt} component.
|
|
|
|
*
|
2019-01-13 19:33:28 +00:00
|
|
|
* @param {?Function} onPostSubmit - The function to invoke after a successful
|
|
|
|
* submit of the dialog.
|
2017-07-28 17:58:04 +00:00
|
|
|
* @returns {Object}
|
|
|
|
*/
|
2019-01-15 11:26:54 +00:00
|
|
|
export function openDisplayNamePrompt(onPostSubmit: ?Function) {
|
2019-01-13 19:33:28 +00:00
|
|
|
return openDialog(DisplayNamePrompt, {
|
|
|
|
onPostSubmit
|
|
|
|
});
|
2017-07-28 17:58:04 +00:00
|
|
|
}
|