From dce4472e2ee6323aa513d90a900e2cdcad5590d3 Mon Sep 17 00:00:00 2001 From: Damien Urruty Date: Tue, 29 Oct 2024 07:53:06 +0100 Subject: [PATCH] CODEFIX-75 Replace Title components with Heading --- .../apps/settings/components/CodeFixAdmin.tsx | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/settings/components/CodeFixAdmin.tsx b/server/sonar-web/src/main/js/apps/settings/components/CodeFixAdmin.tsx index 60f06ccdd44..f13acfaf316 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/CodeFixAdmin.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/CodeFixAdmin.tsx @@ -23,33 +23,25 @@ import { Button, ButtonVariety, Checkbox, + Heading, IconCheckCircle, IconError, LinkStandalone, Spinner, - Text, + Text } from '@sonarsource/echoes-react'; import { MutationStatus } from '@tanstack/react-query'; import { AxiosError } from 'axios'; import React, { useEffect } from 'react'; import { FormattedMessage } from 'react-intl'; -import { - BasicSeparator, - HighlightedSection, - themeColor, - Title, - UnorderedList, -} from '~design-system'; +import { BasicSeparator, HighlightedSection, themeColor, UnorderedList } from '~design-system'; import { SuggestionServiceStatusCheckResponse } from '../../../api/fix-suggestions'; import withAvailableFeatures, { - WithAvailableFeaturesProps, + WithAvailableFeaturesProps } from '../../../app/components/available-features/withAvailableFeatures'; import { translate } from '../../../helpers/l10n'; import { getAiCodeFixTermsOfServiceUrl } from '../../../helpers/urls'; -import { - useCheckServiceMutation, - useRemoveCodeSuggestionsCache, -} from '../../../queries/fix-suggestions'; +import { useCheckServiceMutation, useRemoveCodeSuggestionsCache } from '../../../queries/fix-suggestions'; import { useGetValueQuery, useSaveSimpleValueMutation } from '../../../queries/settings'; import { Feature } from '../../../types/features'; import { SettingsKey } from '../../../types/settings'; @@ -107,7 +99,9 @@ function CodeFixAdmin({ hasFeature }: Readonly) { return (
- {translate('property.codefix.admin.title')} + + {translate('property.codefix.admin.title')} + @@ -168,9 +162,9 @@ function CodeFixAdmin({ hasFeature }: Readonly) {
- + <Heading as="h3" hasMarginBottom> {translate('property.codefix.admin.serviceCheck.title')} - +

{translate('property.codefix.admin.serviceCheck.description1')}

{translate('property.codefix.admin.serviceCheck.description2')}