PHP Classes

File: src/data/jobs/reducer.ts

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/data/jobs/reducer.ts   Download  
File: src/data/jobs/reducer.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 935 bytes


Class file image Download
/** * Internal dependencies. */ import * as Types from './types'; import { jobDefaultState } from '.'; const reducer = (state = jobDefaultState, action) => { switch (action.type) { case Types.GET_JOBS: return { ...state, jobs:, }; case Types.SET_LOADING_JOBS: return { ...state, loadingJobs: action.loading, }; case Types.SET_TOTAL_JOBS: return { ...state, total:, }; case Types.SET_TOTAL_JOBS_PAGE: return { ...state, totalPage: action.totalPage, }; case Types.SET_JOBS_FILTER: return { ...state, filters: action.filters, }; } return state; }; export default reducer;