Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit d4682491
authored
2024-05-23 15:41:38 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
7d2b1fe3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
components/listing/ListingFilter.js
redux/actions/activityAction.js
components/listing/ListingFilter.js
View file @
d468249
...
...
@@ -48,29 +48,30 @@ const ListingFilter = () => {
<
/div
>
<
div
className
=
"inner"
>
<
div
className
=
"price"
>
$0
-
3
000
<
span
className
=
"sub-text"
><
/span
>
$0
-
1
000
<
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
,
3
000
]}
min
=
{
0
}
max
=
{
3
000
}
defaultValue
=
{[
0
,
1
000
]}
//
min={0}
max
=
{
1
000
}
tooltip
=
{{
open
:
true
}}
/
>
<
div
className
=
"graph-price"
>
<
div
className
=
"min"
>
$0
<
/div
>
<
div
className
=
"min"
>
$
3
000
<
/div
>
<
div
className
=
"min"
>
$
1
000
<
/div
>
<
/div
>
{
/* <img className="img-fluid w-100" src="/images/buget.svg" /> */
}
<
/div
>
...
...
redux/actions/activityAction.js
View file @
d468249
...
...
@@ -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
,
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment