@codetanzania/emis-api-states
Version:
EMIS Redux state management library
28 lines (25 loc) • 607 B
JavaScript
import generateExposedActions from '../factories/action';
import { actions, dispatch } from '../store';
const incidentTypeActions = generateExposedActions(
'incidentType',
actions,
dispatch
);
export const {
clearIncidentTypeFilters,
clearIncidentTypesSort,
closeIncidentTypeForm,
deleteIncidentType,
filterIncidentTypes,
getIncidentTypes,
getIncidentType,
selectIncidentType,
openIncidentTypeForm,
paginateIncidentTypes,
postIncidentType,
putIncidentType,
refreshIncidentTypes,
searchIncidentTypes,
setIncidentTypeSchema,
sortIncidentTypes,
} = incidentTypeActions;