UNPKG

lml-main

Version:

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

19 lines 591 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Actions = require("../../jobs/actions"); const initialJobsSortState = { field: 'pickupBy', order: 'asc', }; exports.jobSortReducer = (state = initialJobsSortState, action) => { switch (action.type) { case Actions.SET_JOB_SORT_ORDER: { return setJobSortOrder(state, action); } default: { return state; } } }; const setJobSortOrder = (state, action) => (Object.assign({}, state, { order: action.order })); //# sourceMappingURL=sort.js.map