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
10 months ago
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 }) => {
...
@@ -21,7 +21,7 @@ export const GenericLayout = ({ children }) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
dispatch
(
loadUser
());
dispatch
(
loadUser
());
dispatch
(
getVendorDetails
());
dispatch
(
getVendorDetails
());
dispatch
(
getActivitiesForAdmin
({}));
//
dispatch(getActivitiesForAdmin({}));
},
[]);
},
[]);
const
{
vendorDetails
}
=
useSelector
(
state
=>
state
.
vendorDetails
);
const
{
vendorDetails
}
=
useSelector
(
state
=>
state
.
vendorDetails
);
const
{
loadedUser
}
=
useSelector
(
state
=>
state
.
loadedUser
);
const
{
loadedUser
}
=
useSelector
(
state
=>
state
.
loadedUser
);
...
...
This diff is collapsed.
Click to expand it.
components/vendor/ActivityListingRBAC.js
View file @
4b7f67d
...
@@ -22,7 +22,7 @@ export const ActivityListingRBAC = ({ setactivityDetailInfo, setShowActivityDeta
...
@@ -22,7 +22,7 @@ export const ActivityListingRBAC = ({ setactivityDetailInfo, setShowActivityDeta
const
{
loadedUser
}
=
useSelector
(
state
=>
state
.
loadedUser
);
const
{
loadedUser
}
=
useSelector
(
state
=>
state
.
loadedUser
);
const
{
categories
}
=
useSelector
(
state
=>
state
.
categories
);
const
{
categories
}
=
useSelector
(
state
=>
state
.
categories
);
const
{
subCategories
}
=
useSelector
(
state
=>
state
.
subCategories
);
const
{
subCategories
}
=
useSelector
(
state
=>
state
.
subCategories
);
//
console.log("loadedUser", loadedUser);
console
.
log
(
"loadedUser"
,
loadedUser
);
// useStates
// useStates
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
const
[
columns
,
setcolumns
]
=
useState
([]);
const
[
columns
,
setcolumns
]
=
useState
([]);
...
...
This diff is collapsed.
Click to expand it.
redux/actions/activityAction.js
View file @
4b7f67d
...
@@ -297,7 +297,7 @@ export const getActivitiesForAdmin =
...
@@ -297,7 +297,7 @@ export const getActivitiesForAdmin =
// };
// };
const
response
=
await
axios
.
get
(
`
${
process
.
env
.
NEXT_PUBLIC_BACKEND_API_URL
}
/api/experiences?
${
queryString
}
`
,
config
);
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
({
dispatch
({
type
:
GET_ACTIVITIES_SUCCESS
,
type
:
GET_ACTIVITIES_SUCCESS
,
payload
:
response
.
data
payload
:
response
.
data
...
...
This diff is collapsed.
Click to expand it.
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