UNPKG

contiago-toolbar

Version:

One of the options for outputting content from contiago xml-server

16 lines (14 loc) 790 B
import { GET_RUBRIC_CONTENT, GET_RUBRIC_CONTENT_SUCCESS, GET_RUBRIC_CONTENT_ERROR, SET_CURRENT_PAGE, SET_TOTAL_PAGES_AMOUNT, SET_PAGE_SIZE, } from './constants'; export const getRubricContent = (rubricId) => ({ type: GET_RUBRIC_CONTENT, payload: rubricId }); export const getRubricContentSuccess = (rubricContent) => ({ type: GET_RUBRIC_CONTENT_SUCCESS, payload: rubricContent }); export const getRubricContentError = (error) => ({ type: GET_RUBRIC_CONTENT_ERROR, payload: error }); export const setCurrentPage = (pageNumber) => ({ type: SET_CURRENT_PAGE, payload: pageNumber }); export const setTotalPagesAmount = (pagesAmount) => ({ type: SET_TOTAL_PAGES_AMOUNT, payload: pagesAmount }); export const setPageSize = (pageSize) => ({ type: SET_PAGE_SIZE, payload: pageSize });