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 2926a56c
authored
2024-06-05 17:51:24 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
d4e8a550
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
components/detail/Detail.js
components/listing/ListingInner.js
pages/listing.js
components/detail/Detail.js
View file @
2926a56
...
@@ -22,9 +22,9 @@ const Detail = () => {
...
@@ -22,9 +22,9 @@ const Detail = () => {
useEffect
(()
=>
{
useEffect
(()
=>
{
// console.log("router", activityById.data.attributes.category?.data?.attributes.name);
// console.log("router", activityById.data.attributes.category?.data?.attributes.name);
dispatch
(
getActivitiesByFilters
({
category
:
activityById
?.
data
.
attributes
.
category
?.
data
?.
id
,
currentPage
:
router
.
query
.
page
}));
dispatch
(
getActivitiesByFilters
({
category
:
activityById
?.
data
.
attributes
.
category
?.
data
?.
id
,
currentPage
:
router
.
query
.
page
}));
},
[
activityById
]);
},
[
activityById
,
router
]);
console
.
log
(
"faqs=>"
,
faqs
);
//
console.log("faqs=>", faqs);
console
.
log
(
"activityById"
,
activityById
);
console
.
log
(
"activityById"
,
activityById
);
console
.
log
(
"loadedUser"
,
loadedUser
);
console
.
log
(
"loadedUser"
,
loadedUser
);
return
(
return
(
...
...
components/listing/ListingInner.js
View file @
2926a56
...
@@ -111,7 +111,7 @@ const ListingInner = ({ allActivitiesData, loading, totalCount }) => {
...
@@ -111,7 +111,7 @@ const ListingInner = ({ allActivitiesData, loading, totalCount }) => {
currentPage
:
router
.
query
.
page
currentPage
:
router
.
query
.
page
})
})
);
);
},
[
activityFilters
]);
},
[
activityFilters
,
router
]);
return
(
return
(
<>
<>
...
...
pages/listing.js
View file @
2926a56
...
@@ -11,9 +11,9 @@ export default function ListingPage() {
...
@@ -11,9 +11,9 @@ export default function ListingPage() {
/** Client side rendering, traditional API call. */
/** Client side rendering, traditional API call. */
const
router
=
useRouter
();
const
router
=
useRouter
();
const
dispatch
=
useDispatch
();
const
dispatch
=
useDispatch
();
useEffect
(()
=>
{
//
useEffect(() => {
dispatch
(
getActivitiesByFilters
({
currentPage
:
router
.
query
.
page
}));
//
dispatch(getActivitiesByFilters({ currentPage: router.query.page }));
},
[
router
]);
//
}, [router]);
return
(
return
(
<
Layout
>
<
Layout
>
...
...
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