mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ui.git
				synced 2025-11-03 20:28:12 +00:00 
			
		
		
		
	Merge pull request #80 from Telecominfraproject/bugfix/NETEXP-741
bugfix/NETEXP-741: Passed down currentUserId to accounts page
This commit is contained in:
		@@ -66,7 +66,7 @@ const DELETE_USER = gql`
 | 
				
			|||||||
`;
 | 
					`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Accounts = () => {
 | 
					const Accounts = () => {
 | 
				
			||||||
  const { customerId } = useContext(UserContext);
 | 
					  const { customerId, id: currentUserId } = useContext(UserContext);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const { data, loading, error, refetch, fetchMore } = useQuery(GET_ALL_USERS, {
 | 
					  const { data, loading, error, refetch, fetchMore } = useQuery(GET_ALL_USERS, {
 | 
				
			||||||
    variables: { customerId },
 | 
					    variables: { customerId },
 | 
				
			||||||
@@ -173,6 +173,7 @@ const Accounts = () => {
 | 
				
			|||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <AccountsPage
 | 
					    <AccountsPage
 | 
				
			||||||
      data={data.getAllUsers.items}
 | 
					      data={data.getAllUsers.items}
 | 
				
			||||||
 | 
					      currentUserId={currentUserId}
 | 
				
			||||||
      onLoadMore={handleLoadMore}
 | 
					      onLoadMore={handleLoadMore}
 | 
				
			||||||
      onCreateUser={handleCreateUser}
 | 
					      onCreateUser={handleCreateUser}
 | 
				
			||||||
      onEditUser={handleEditUser}
 | 
					      onEditUser={handleEditUser}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user