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 445B

12345678910111213141516171819
  1. // @flow
  2. import { SET_ACTIVE_MODAL_ID } from './actionTypes';
  3. /**
  4. * Action to set the ID of the active modal (or undefined if needs to be hidden).
  5. *
  6. * @param {string} activeModalId - The new modal ID or undefined.
  7. * @returns {{
  8. * activeModalId: string,
  9. * type: SET_ACTIVE_MODAL_ID
  10. * }}
  11. */
  12. export function setActiveModalId(activeModalId: ?string) {
  13. return {
  14. activeModalId,
  15. type: SET_ACTIVE_MODAL_ID
  16. };
  17. }