All files / src/redux/actions notifierActions.js

100% Statements 7/7
100% Branches 2/2
100% Functions 3/3
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2223x 6x   6x                 23x         23x        
export const enqueueSnackbar = payload => {
  const key = payload.options && payload.options.key;
 
  return {
    type: "ENQUEUE_SNACKBAR",
    payload: {
      ...payload,
      key
    }
  };
};
 
export const closeSnackbar = payload => ({
  type: "CLOSE_SNACKBAR",
  payload
});
 
export const removeSnackbar = payload => ({
  type: "REMOVE_SNACKBAR",
  payload
});