Commit d4682491 by jaymehta

.

1 parent 7d2b1fe3
......@@ -48,29 +48,30 @@ const ListingFilter = () => {
</div>
<div className="inner">
<div className="price">
$0 - 3000 <span className="sub-text"></span>
$0 - 1000 <span className="sub-text"></span>
</div>
<div className="graph">
<Slider
range={{
draggableTrack: true
}}
step={10}
onChange={e => {
// console.log(e);
setTimeout(() => {
dispatch(setActivityFilters({ filters: { ...activityFilters, priceLowerLimit: e[0], priceUpperLimit: e[1] } }));
}, 1000);
// setTimeout(() => {
// }, 1000);
}}
defaultValue={[0, 3000]}
min={0}
max={3000}
defaultValue={[0, 1000]}
// min={0}
max={1000}
tooltip={{
open: true
}}
/>
<div className="graph-price">
<div className="min">$0</div>
<div className="min">$3000</div>
<div className="min">$1000</div>
</div>
{/* <img className="img-fluid w-100" src="/images/buget.svg" /> */}
</div>
......
......@@ -319,7 +319,7 @@ export const getActivitiesForEndUser = () => async dispatch => {
};
export const getActivitiesByFilters =
({ category, subCategory, price, ageLowerLimit, duration, fromDate, toDate, minGroupSize, maxGroupSize, minimumDuration, maximumDuration, activityType, sort }) =>
({ category, subCategory, price, ageLowerLimit, duration, fromDate, toDate, minGroupSize, maxGroupSize, minimumDuration, maximumDuration, activityType, sort, priceLowerLimit, priceUpperLimit }) =>
async dispatch => {
let sortFilter = [];
try {
......@@ -340,7 +340,7 @@ export const getActivitiesByFilters =
}
let query = {
filters: {
approved: { $eq: true }
approved: { $eq: "approved" }
// fromDate: { $gte: fromDate },
// toDate: { $lte: toDate },
// $and: [{ fromDate: { $gte: "2024-05-05" } }, { toDate: { $lte: toDate } }]
......@@ -391,6 +391,9 @@ export const getActivitiesByFilters =
if (sort) {
query["sort"] = sortFilter;
}
if (priceLowerLimit && priceUpperLimit) {
}
// console.log("subcategoryquery:", query);
const queryString = qs.stringify(query, {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!