From d134ebd2e8231a7689c1d2566f5ecf33af0531bf Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 23 Apr 2021 10:45:34 +0200 Subject: [PATCH] SONAR-14662 Better Plugin Risk Consent page --- .../js/app/components/PluginRiskConsent.tsx | 21 ++++------------- .../PluginRiskConsent-test.tsx.snap | 23 ++----------------- .../resources/org/sonar/l10n/core.properties | 4 +--- 3 files changed, 7 insertions(+), 41 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx b/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx index e251fba3900..4a64fe97bbd 100644 --- a/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx +++ b/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx @@ -18,8 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { FormattedMessage } from 'react-intl'; -import { Link } from 'react-router'; import { Button } from 'sonar-ui-common/components/controls/buttons'; import { translate } from 'sonar-ui-common/helpers/l10n'; import { setSimpleSettingValue } from '../../api/settings'; @@ -66,22 +64,11 @@ export function PluginRiskConsent(props: PluginRiskConsentProps) {

{translate('plugin_risk_consent.title')}

{translate('plugin_risk_consent.description')}

-

{translate('plugin_risk_consent.description2')}

-

- - {translate('plugin_risk_consent.description3.link')} - - ) - }} - /> -

+

{translate('plugin_risk_consent.description2')}

- +
diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/PluginRiskConsent-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/PluginRiskConsent-test.tsx.snap index aecc22a2247..5e5cb14f15e 100644 --- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/PluginRiskConsent-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/PluginRiskConsent-test.tsx.snap @@ -21,32 +21,13 @@ exports[`should render correctly: default 1`] = ` > plugin_risk_consent.description

-

- plugin_risk_consent.description2 -

- - plugin_risk_consent.description3.link - , - } - } - /> + plugin_risk_consent.description2