diff options
author | Viktor Vorona <viktor.vorona@sonarsource.com> | 2024-11-21 16:26:36 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-11-26 20:02:50 +0000 |
commit | 0fd7409c293ea55ea78ae19921b9c0e0aa49abde (patch) | |
tree | 2668a01bae95cf814f03f631c52b80629c8cd237 /server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx | |
parent | 3c68707953061224705c3cf915b49b73c970149e (diff) | |
download | sonarqube-0fd7409c293ea55ea78ae19921b9c0e0aa49abde.tar.gz sonarqube-0fd7409c293ea55ea78ae19921b9c0e0aa49abde.zip |
SONAR-23651 Use Get and Patch for mode instead of settings
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx index b48d39c0982..d01ded4a9ef 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssueHeaderSide.tsx @@ -25,7 +25,7 @@ import { LightLabel, themeBorder } from '~design-system'; import { CleanCodeAttributePill } from '../../../components/shared/CleanCodeAttributePill'; import SoftwareImpactPillList from '../../../components/shared/SoftwareImpactPillList'; import { translate } from '../../../helpers/l10n'; -import { useStandardExperienceMode } from '../../../queries/settings'; +import { useStandardExperienceModeQuery } from '../../../queries/mode'; import { SoftwareImpactSeverity, SoftwareQuality } from '../../../types/clean-code-taxonomy'; import { IssueSeverity } from '../../../types/issues'; import { Issue } from '../../../types/types'; @@ -37,7 +37,7 @@ interface Props { } export default function IssueHeaderSide({ issue, onSetSeverity }: Readonly<Props>) { - const { data: isStandardMode, isLoading } = useStandardExperienceMode(); + const { data: isStandardMode, isLoading } = useStandardExperienceModeQuery(); return ( <StyledSection className="sw-flex sw-flex-col sw-pl-4 sw-max-w-[250px]"> <Spinner isLoading={isLoading}> |