reducers.js 1.47 KB
import { combineReducers } from "redux";
import { projectReducer, projectsReducer, similarProjectsReducer } from "./projectsReducer";
import { townshipReducer, townshipsReducer } from "./townshipsReducer";
import { authReducer, forgotPasswordReducer, loadedUserReducer, resetPasswordReducer, userReducer } from "./userReducers";
import { enquiryReducer } from "./enquiryReducer";
import { displayEnquireNowReducer } from "./enquireNowModalReducer";
import { getVendorDetailsReducer, loggedInVendorReducer, updateVendorReducer } from "./vendorReducers";
import { createActivityReducer } from "./activitiesReducer";
import { getAllCategoriesReducer, getAllSubCategoriesReducer } from "./categoryReducer";
import { getAllTestimonialReducer } from "./testimonialReducer";

const reducers = combineReducers({
  townships: townshipsReducer,
  township: townshipReducer,
  projects: projectsReducer,
  project: projectReducer,
  auth: authReducer,
  loadedUser: loadedUserReducer,
  user: userReducer,
  forgotPassword: forgotPasswordReducer,
  resetPassword: resetPasswordReducer,
  similarProjects: similarProjectsReducer,
  enquiry: enquiryReducer,
  displayEnquireNow:displayEnquireNowReducer,
  loggedInVendor: loggedInVendorReducer,
  updatedVendorData: updateVendorReducer,
  vendorDetails: getVendorDetailsReducer,
  activityData: createActivityReducer,
  categories: getAllCategoriesReducer,
  subCategories: getAllSubCategoriesReducer,
  testimonial: getAllTestimonialReducer,
});

export default reducers;