logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

modal.js (284B)


  1. export const MODAL_OPEN = 'MODAL_OPEN';
  2. export const MODAL_CLOSE = 'MODAL_CLOSE';
  3. export function openModal(type, props) {
  4. return {
  5. type: MODAL_OPEN,
  6. modalType: type,
  7. modalProps: props,
  8. };
  9. };
  10. export function closeModal() {
  11. return {
  12. type: MODAL_CLOSE,
  13. };
  14. };