2
0

stationOverlay.js 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. export const OPEN_OVERLAY1 = "OPEN_OVERLAY1";
  2. export const OPEN_OVERLAY2 = "OPEN_OVERLAY2";
  3. export const OPEN_OVERLAY3 = "OPEN_OVERLAY3";
  4. export const CLOSE_OVERLAY1 = "CLOSE_OVERLAY1";
  5. export const CLOSE_OVERLAY2 = "CLOSE_OVERLAY2";
  6. export const CLOSE_OVERLAY3 = "CLOSE_OVERLAY3";
  7. export function openOverlay1(overlay) {
  8. return {
  9. type: OPEN_OVERLAY1,
  10. overlay,
  11. };
  12. }
  13. export function openOverlay2(overlay, extraProps) {
  14. return {
  15. type: OPEN_OVERLAY2,
  16. overlay,
  17. extraProps,
  18. };
  19. }
  20. export function openOverlay3(overlay, callback) {
  21. return {
  22. type: OPEN_OVERLAY3,
  23. overlay,
  24. callback,
  25. };
  26. }
  27. export function closeOverlay1() {
  28. return {
  29. type: CLOSE_OVERLAY1,
  30. };
  31. }
  32. export function closeOverlay2() {
  33. return {
  34. type: CLOSE_OVERLAY2,
  35. extraValue: null,
  36. };
  37. }
  38. export function closeOverlay3() {
  39. return {
  40. type: CLOSE_OVERLAY3,
  41. };
  42. }