aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/UsersList.tsx
diff options
context:
space:
mode:
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>2023-07-24 12:16:13 +0200
committersonartech <sonartech@sonarsource.com>2023-07-31 20:03:31 +0000
commita0bade28a6c8a387afbe78a8fd3bc90bb00aa267 (patch)
tree2b2f33b7ae73f3fc459559cdae16075fd710c8bb /server/sonar-web/src/main/js/apps/users/UsersList.tsx
parent5f30a8ab495390c57c12ccab5fc228b4591a23ed (diff)
downloadsonarqube-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.tsx12
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}
/>