Commit 90695a54 by jaymehta

.

1 parent 1eec64c6
......@@ -179,7 +179,6 @@ const Reviews = ({ isVendor }) => {
};
})
);
// dispatch(getActivitiesByFilters({}));
}, [reviews]);
return (
......
......@@ -89,7 +89,6 @@ const ReviewsListing = ({ activityId, setshowReviews, isVendor }) => {
onClick={async () => {
const res = await deleteReview({ reviewId });
dispatch(getReviewsAction({ activityId }));
// dispatch(getActivitiesByFilters({}));
toast.success("Review deleted");
setshowModal(false);
// console.log(res);
......
......@@ -24,7 +24,7 @@ const SearchBar = () => {
<Typeahead
open={open}
id="select"
placeholder="Search for products, brands or categories"
placeholder="Search for experiences or categories"
onBlur={() => {
setopen(false);
}}
......
......@@ -42,7 +42,6 @@ const LetDiscover = ({ categories }) => {
// }, [router]);
useEffect(() => {
console.log("router.query.category", router.query.category);
// console.log("getting id to filtered categoryiiiiiiiiiiifsdkhdjkskiiiiiiiiiiiiiiiiiiiiiiiii", parseInt(router.query.category))
if (router.query.category) {
dispatch(setActivityFilters({ filters: { category: Number(router.query.category), subCategories: [] } }));
......
......@@ -100,7 +100,7 @@ const ListingInner = ({ allActivitiesData, loading, totalCount }) => {
dispatch(
getActivitiesByFilters({
subCategory: filters.subCategory,
category: filters.category,
category: filters.category ? filters.category : router.query.category,
activityType: filters.activityType,
fromDate: filters.fromDate,
toDate: filters.toDate,
......
......@@ -185,7 +185,9 @@ export const ActivityListingRBAC = ({ setactivityDetailInfo, setShowActivityDeta
filters: categoryFilterArray,
filterMode: "tree",
filterSearch: true,
onFilter: (value, record) => record.category.startsWith(value),
onFilter: (value, record) => {
console.log(value);
},
width: "15%"
},
{
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!