bigbuffet-rw/app/soapbox/actions/modal.js
marcin mikołajczak b0477ac1e1 fix broken modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-07 00:50:32 +01:00

18 lines
325 B
JavaScript

export const MODAL_OPEN = 'MODAL_OPEN';
export const MODAL_CLOSE = 'MODAL_CLOSE';
export function openModal(type, props) {
return {
type: MODAL_OPEN,
modalType: type,
modalProps: props,
};
}
export function closeModal(type, noPop) {
return {
type: MODAL_CLOSE,
modalType: type,
noPop,
};
}