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 4b7f67d3
authored
2024-06-17 11:10:42 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
vendor permissions
1 parent
52317586
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
components/layout/Generics/GenericLayout.js
components/vendor/ActivityListingRBAC.js
redux/actions/activityAction.js
components/layout/Generics/GenericLayout.js
View file @
4b7f67d
...
...
@@ -21,7 +21,7 @@ export const GenericLayout = ({ children }) => {
useEffect
(()
=>
{
dispatch
(
loadUser
());
dispatch
(
getVendorDetails
());
dispatch
(
getActivitiesForAdmin
({}));
//
dispatch(getActivitiesForAdmin({}));
},
[]);
const
{
vendorDetails
}
=
useSelector
(
state
=>
state
.
vendorDetails
);
const
{
loadedUser
}
=
useSelector
(
state
=>
state
.
loadedUser
);
...
...
components/vendor/ActivityListingRBAC.js
View file @
4b7f67d
...
...
@@ -22,7 +22,7 @@ export const ActivityListingRBAC = ({ setactivityDetailInfo, setShowActivityDeta
const
{
loadedUser
}
=
useSelector
(
state
=>
state
.
loadedUser
);
const
{
categories
}
=
useSelector
(
state
=>
state
.
categories
);
const
{
subCategories
}
=
useSelector
(
state
=>
state
.
subCategories
);
//
console.log("loadedUser", loadedUser);
console
.
log
(
"loadedUser"
,
loadedUser
);
// useStates
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
const
[
columns
,
setcolumns
]
=
useState
([]);
...
...
redux/actions/activityAction.js
View file @
4b7f67d
...
...
@@ -297,7 +297,7 @@ export const getActivitiesForAdmin =
// };
const
response
=
await
axios
.
get
(
`
${
process
.
env
.
NEXT_PUBLIC_BACKEND_API_URL
}
/api/experiences?
${
queryString
}
`
,
config
);
// console.log("Response
", response.data);
console
.
log
(
"Response admin
"
,
response
.
data
);
dispatch
({
type
:
GET_ACTIVITIES_SUCCESS
,
payload
:
response
.
data
...
...
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