Commit 90695a54 by jaymehta

.

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