reducers.js 2.04 KB
import { combineReducers } from "redux";
import { bankingPartnersReducer } from "./bankingPartnersReducer";
import { companyInformationReducer } from "./companyInformationReducer";
import { cpConnectPageReducer } from "./cpConnectPageReducer";
import { detailReducer } from "./detailsReducer";
import { cpLoginReducer } from "./cpLoginReducer";
import { homeBannerReducer } from "./homeBannersReducer";
import { homeContentReducer } from "./homeContentReducer";
import { homeDeliveryStatReducer } from "./homeDeliveryStatsReducer";
import { locationsReducer } from "./locationsReducer";
import { menuItemsReducer } from "./menuItemsReducer";
import { projectReducer, projectsReducer, similarProjectsReducer } from "./projectsReducer";
import { townshipReducer, townshipsReducer } from "./townshipsReducer";
import { authReducer, forgotPasswordReducer, loadedUserReducer, resetPasswordReducer, userReducer } from "./userReducers";
import { referralReducer } from "./referralReducer";
import { contactUsReducer } from "./contactUsReducer";
import { enquiryReducer } from "./enquiryReducer";
import { displayEnquireNowReducer } from "./enquireNowModalReducer";

const reducers = combineReducers({
  bankingPartners: bankingPartnersReducer,
  homeContent: homeContentReducer,
  homeBanners: homeBannerReducer,
  townships: townshipsReducer,
  township: townshipReducer,
  projects: projectsReducer,
  project: projectReducer,
  companyInformation: companyInformationReducer,
  mainMenuItems: menuItemsReducer("Main"),
  footerMenuItems: menuItemsReducer("Footer"),
  locations: locationsReducer,
  homeDeliveryStats: homeDeliveryStatReducer,
  cpConnectPage: cpConnectPageReducer,
  auth: authReducer,
  loadedUser: loadedUserReducer,
  user: userReducer,
  forgotPassword: forgotPasswordReducer,
  resetPassword: resetPasswordReducer,
  details: detailReducer,
  cpLogin: cpLoginReducer,
  referral: referralReducer,
  similarProjects: similarProjectsReducer,
  contactUs: contactUsReducer,
  enquiry: enquiryReducer,
  displayEnquireNow:displayEnquireNowReducer
});

export default reducers;