UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

12 lines 806 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cosmoui_1 = require("cosmoui"); const selectors_1 = require("../../couriers/selectors"); const constants_1 = require("../../couriers/constants"); exports.showCourierDetailsModal = (refId = null) => (dispatch, getState) => { const courierId = (refId) ? refId : selectors_1.getActiveCourierId(getState()); dispatch(cosmoui_1.openModal(constants_1.COURIER_DETAILS_MODAL_KEY, { refId: courierId, backgroundActive: false })); }; exports.showCourierChangeFrequencyModal = (courier) => cosmoui_1.openModal(constants_1.COURIER_CHANGE_FREQUENCY_MODAL_KEY, { courier }); exports.showCourierActionModal = (jobRefId) => cosmoui_1.openModal(constants_1.COURIER_ACTION_MODAL_KEY, { jobRefId }); //# sourceMappingURL=modals.js.map