Commit 4b7f67d3 by jaymehta

vendor permissions

1 parent 52317586
...@@ -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);
......
...@@ -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([]);
......
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!