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.

31 lines
566 B

  1. export const MEDIA_OPEN = 'MEDIA_OPEN';
  2. export const MODAL_CLOSE = 'MODAL_CLOSE';
  3. export const MODAL_INDEX_DECREASE = 'MODAL_INDEX_DECREASE';
  4. export const MODAL_INDEX_INCREASE = 'MODAL_INDEX_INCREASE';
  5. export function openMedia(media, index) {
  6. return {
  7. type: MEDIA_OPEN,
  8. media,
  9. index
  10. };
  11. };
  12. export function closeModal() {
  13. return {
  14. type: MODAL_CLOSE
  15. };
  16. };
  17. export function decreaseIndexInModal() {
  18. return {
  19. type: MODAL_INDEX_DECREASE
  20. };
  21. };
  22. export function increaseIndexInModal() {
  23. return {
  24. type: MODAL_INDEX_INCREASE
  25. };
  26. };