diff options
author | Viktor Vorona <viktor.vorona@sonarsource.com> | 2023-08-10 17:12:59 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-11 20:02:49 +0000 |
commit | 344e16be5060c96fceb39ee737dd7604ed6d717d (patch) | |
tree | 2899a2f35629019bab1dededb20e452fc12b4f38 /server/sonar-web/src/main/js/components/permissions | |
parent | fc14589ce7a24ca782b09ac3d34fb5f9bfe4bff1 (diff) | |
download | sonarqube-344e16be5060c96fceb39ee737dd7604ed6d717d.tar.gz sonarqube-344e16be5060c96fceb39ee737dd7604ed6d717d.zip |
SONAR-20122 Move react-queries to common folder
Diffstat (limited to 'server/sonar-web/src/main/js/components/permissions')
-rw-r--r-- | server/sonar-web/src/main/js/components/permissions/HoldersList.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/permissions/HoldersList.tsx b/server/sonar-web/src/main/js/components/permissions/HoldersList.tsx index 306a9772f57..5f0eb67e3c8 100644 --- a/server/sonar-web/src/main/js/components/permissions/HoldersList.tsx +++ b/server/sonar-web/src/main/js/components/permissions/HoldersList.tsx @@ -19,10 +19,10 @@ */ import { partition } from 'lodash'; import * as React from 'react'; -import { useGithubStatusQuery } from '../../apps/settings/components/authentication/queries/identity-provider'; import UseQuery from '../../helpers/UseQuery'; import { translate } from '../../helpers/l10n'; import { isPermissionDefinitionGroup } from '../../helpers/permissions'; +import { useGithubProvisioningEnabledQuery } from '../../queries/identity-provider'; import { Dict, PermissionDefinitions, PermissionGroup, PermissionUser } from '../../types/types'; import GroupHolder from './GroupHolder'; import PermissionHeader from './PermissionHeader'; @@ -105,7 +105,7 @@ export default class HoldersList extends React.PureComponent<Props, State> { renderItem(item: PermissionUser | PermissionGroup, permissions: PermissionDefinitions) { const { isGitHubProject, selectedPermission, isComponentPrivate } = this.props; return ( - <UseQuery key={this.getKey(item)} query={useGithubStatusQuery}> + <UseQuery key={this.getKey(item)} query={useGithubProvisioningEnabledQuery}> {({ data: githubProvisioningStatus }) => ( <> {this.isPermissionUser(item) ? ( |