From 52e89eb6c3a1669623403f01ba5ca0338fb6a257 Mon Sep 17 00:00:00 2001
From: Philippe Perrin
Date: Fri, 25 Jun 2021 17:36:16 +0200
Subject: [PATCH] SONAR-14934 Remove links to project settings and tutorials
---
.../tutorials/manual/DoneNextSteps.tsx | 44 +------------
.../__snapshots__/DoneNextSteps-test.tsx.snap | 61 +------------------
.../resources/org/sonar/l10n/core.properties | 6 +-
3 files changed, 7 insertions(+), 104 deletions(-)
diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/DoneNextSteps.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/DoneNextSteps.tsx
index 729bd9cbfb7..0b782d55708 100644
--- a/server/sonar-web/src/main/js/components/tutorials/manual/DoneNextSteps.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/manual/DoneNextSteps.tsx
@@ -21,21 +21,12 @@ import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router';
import { translate } from 'sonar-ui-common/helpers/l10n';
-import { PULL_REQUEST_DECORATION_BINDING_CATEGORY } from '../../../apps/settings/components/AdditionalCategoryKeys';
-import { getProjectSettingsUrl } from '../../../helpers/urls';
export interface DoneNextStepsProps {
component: T.Component;
}
export default function DoneNextSteps({ component }: DoneNextStepsProps) {
- const tutorialsLink = (
-
- {translate(
- 'onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.see_tutorials'
- )}
-
- );
const isProjectAdmin = component.configuration?.showSettings;
return (
@@ -47,38 +38,9 @@ export default function DoneNextSteps({ component }: DoneNextStepsProps) {
{translate('onboarding.analysis.auto_refresh_after_analysis.auto_refresh')}
- {isProjectAdmin ? (
-
- {translate(
- 'onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.project_settings'
- )}
-
- ),
- link_see_tutorials: tutorialsLink
- }}
- />
- ) : (
-
- )}
+ {isProjectAdmin
+ ? translate('onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.admin')
+ : translate('onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci')}
-
- onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.see_tutorials
- ,
- }
- }
- />
+ onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci
-
- onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.project_settings
- ,
- "link_see_tutorials":
- onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.see_tutorials
- ,
- }
- }
- />
+ onboarding.analysis.auto_refresh_after_analysis.set_up_pr_deco_and_ci.admin