diff options
author | guillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com> | 2023-07-24 12:16:13 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-07-31 20:03:31 +0000 |
commit | a0bade28a6c8a387afbe78a8fd3bc90bb00aa267 (patch) | |
tree | 2b2f33b7ae73f3fc459559cdae16075fd710c8bb /server/sonar-web/src/main/js/apps/users/UsersList.tsx | |
parent | 5f30a8ab495390c57c12ccab5fc228b4591a23ed (diff) | |
download | sonarqube-a0bade28a6c8a387afbe78a8fd3bc90bb00aa267.tar.gz sonarqube-a0bade28a6c8a387afbe78a8fd3bc90bb00aa267.zip |
SONAR-19967 Refactor User call using React Query
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/UsersList.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/users/UsersList.tsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/UsersList.tsx b/server/sonar-web/src/main/js/apps/users/UsersList.tsx index d1f3349c960..e3fed01d219 100644 --- a/server/sonar-web/src/main/js/apps/users/UsersList.tsx +++ b/server/sonar-web/src/main/js/apps/users/UsersList.tsx @@ -27,19 +27,11 @@ import UserListItem from './components/UserListItem'; interface Props { identityProviders: IdentityProvider[]; - onUpdateUsers: () => void; - updateTokensCount: (login: string, tokensCount: number) => void; users: User[]; manageProvider: string | undefined; } -export default function UsersList({ - identityProviders, - onUpdateUsers, - updateTokensCount, - users, - manageProvider, -}: Props) { +export default function UsersList({ identityProviders, users, manageProvider }: Props) { const userContext = React.useContext(CurrentUserContext); const currentUser = userContext?.currentUser; @@ -73,8 +65,6 @@ export default function UsersList({ )} isCurrentUser={isLoggedIn(currentUser) && currentUser.login === user.login} key={user.login} - onUpdateUsers={onUpdateUsers} - updateTokensCount={updateTokensCount} user={user} manageProvider={manageProvider} /> |