2
0

stationOverlay.js 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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, callback) {
  14. return {
  15. type: OPEN_OVERLAY2,
  16. overlay,
  17. extraProps,
  18. callback,
  19. };
  20. }
  21. export function openOverlay3(overlay, callback) {
  22. return {
  23. type: OPEN_OVERLAY3,
  24. overlay,
  25. callback,
  26. };
  27. }
  28. export function closeOverlay1() {
  29. return {
  30. type: CLOSE_OVERLAY1,
  31. };
  32. }
  33. export function closeOverlay2() {
  34. return {
  35. type: CLOSE_OVERLAY2,
  36. extraValue: null,
  37. };
  38. }
  39. export function closeOverlay3() {
  40. return {
  41. type: CLOSE_OVERLAY3,
  42. };
  43. }