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

123456789101112131415161718192021
  1. // @flow
  2. import { SET_CURRENT_NOTIFICATION_UID } from './actionTypes';
  3. /**
  4. * Sets UID of the the pending notification to use it when hiding
  5. * the notification is necessary, or unsets it when undefined (or no param) is
  6. * passed.
  7. *
  8. * @param {?number} uid - The UID of the notification.
  9. * @returns {{
  10. * type: SET_CURRENT_NOTIFICATION_UID,
  11. * uid: number
  12. * }}
  13. */
  14. export function setCurrentNotificationUid(uid: ?number) {
  15. return {
  16. type: SET_CURRENT_NOTIFICATION_UID,
  17. uid
  18. };
  19. }