diff options
Diffstat (limited to 'app/assets/javascripts/components/actions')
-rw-r--r-- | app/assets/javascripts/components/actions/modal.jsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/modal.jsx b/app/assets/javascripts/components/actions/modal.jsx new file mode 100644 index 000000000..89dbc7947 --- /dev/null +++ b/app/assets/javascripts/components/actions/modal.jsx @@ -0,0 +1,15 @@ +export const MEDIA_OPEN = 'MEDIA_OPEN'; +export const MODAL_CLOSE = 'MODAL_CLOSE'; + +export function openMedia(url) { + return { + type: MEDIA_OPEN, + url: url + }; +}; + +export function closeModal() { + return { + type: MODAL_CLOSE + }; +}; |