reducers.js 2.67 KB
import { combineReducers } from "redux";
import { projectReducer, projectsReducer, similarProjectsReducer } from "./projectsReducer";
import { townshipReducer, townshipsReducer } from "./townshipsReducer";
import { authReducer, forgotPasswordReducer, getEndUserReducer, loadedUserReducer, resetPasswordReducer, userReducer } from "./userReducers";
import { enquiryReducer, getEnquiriesByEndUserReducer, getEnquiriesByVendorReducer, getEnquiriesReducer } from "./enquiryReducer";
import { displayEnquireNowReducer } from "./enquireNowModalReducer";
import { getAllVendorsReducer, getVendorDetailsReducer, loggedInVendorReducer, updateVendorReducer } from "./vendorReducers";
import {
  createActivityReducer,
  getActivitiesReducer,
  getActivityByIdReducer,
  getWishlistsReducer,
  setActivityFilterReducer,
  updateActivityByIdReducer
} from "./activitiesReducer";
import { getAllCategoriesReducer, getAllSubCategoriesReducer } from "./categoryReducer";
import { getAllTestimonialReducer } from "./testimonialReducer";
import { blogReducer, blogsReducer } from "./blogReducer";
import { getAllHomeBannerReducer } from "./homeBannerReducer";
import { getAllFaqsReducer } from "./faqsReducer";
import { reviewsReducer } from "./reviewsReducers";
import { giftCardReducer } from "./giftCardReducer";
import { getNotificationsReducer } from "./notificationsReducer";

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,
  allActivitiesData: getActivitiesReducer,
  activityById: getActivityByIdReducer,
  updatedActivity: updateActivityByIdReducer,
  blogs: blogsReducer,
  blog: blogReducer,
  homeBanner: getAllHomeBannerReducer,
  allVendors: getAllVendorsReducer,
  endUser: getEndUserReducer,
  enquiriesByVendor: getEnquiriesReducer,
  activityFilters: setActivityFilterReducer,
  wishlists: getWishlistsReducer,
  faqs: getAllFaqsReducer,
  reviews: reviewsReducer,
  giftCard: giftCardReducer,
  enquiriesByAdmin: getEnquiriesByVendorReducer,
  enquiriesByEndUser: getEnquiriesByEndUserReducer,
  notifications: getNotificationsReducer,
});

export default reducers;