jiti-meet/react/features/display-name/actions.js

19 lines
468 B
JavaScript
Raw Normal View History

2019-01-13 19:33:28 +00:00
// @flow
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.
* @returns {Object}
*/
export function openDisplayNamePrompt(onPostSubmit: ?Function) {
2019-01-13 19:33:28 +00:00
return openDialog(DisplayNamePrompt, {
onPostSubmit
});
}