From 51dcece050be0fb2e479d023d248bca0ca87dcf8 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 9 Feb 2021 12:00:27 +0100 Subject: [PATCH] SONAR-13838 Clean up GitLab onboarding project list --- .../project/GitlabProjectSelectionForm.tsx | 39 ++++---- .../GitlabProjectSelectionForm-test.tsx.snap | 94 ++++++++----------- 2 files changed, 56 insertions(+), 77 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/create/project/GitlabProjectSelectionForm.tsx b/server/sonar-web/src/main/js/apps/create/project/GitlabProjectSelectionForm.tsx index 57fc84e7267..d87c95f825c 100644 --- a/server/sonar-web/src/main/js/apps/create/project/GitlabProjectSelectionForm.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/GitlabProjectSelectionForm.tsx @@ -101,7 +101,17 @@ export default function GitlabProjectSelectionForm(props: GitlabProjectSelection - {project.name} + {project.sqProjectKey ? ( + + + {project.sqProjectName} + + ) : ( + project.name + )}
@@ -122,27 +132,14 @@ export default function GitlabProjectSelectionForm(props: GitlabProjectSelection {project.sqProjectKey ? ( - <> - - - - {translate('onboarding.create_project.repository_imported')}: - - - -
- - - {project.sqProjectName} - -
- - + + + + {translate('onboarding.create_project.repository_imported')} + + ) : ( - +