diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2024-12-03 11:51:55 +0100 |
---|---|---|
committer | Steve Marion <steve.marion@sonarsource.com> | 2024-12-18 11:13:22 +0100 |
commit | fb8c7e82be68bebdf4473a3020c91699e8021467 (patch) | |
tree | b8bbd8f4d8f48e3fed206382131c7a1a76ac512b /server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx | |
parent | 150964c272076babccd1d1fdd837d0324cdbd4ad (diff) | |
download | sonarqube-fb8c7e82be68bebdf4473a3020c91699e8021467.tar.gz sonarqube-fb8c7e82be68bebdf4473a3020c91699e8021467.zip |
SONAR-23605 Cleanup legacy sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx deleted file mode 100644 index 59bc429e964..00000000000 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx +++ /dev/null @@ -1,48 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2024 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -import { ItemLink } from '~design-system'; -import { Image } from '~sonar-aligned/components/common/Image'; -import { queryToSearchString } from '~sonar-aligned/helpers/urls'; -import { translate } from '../../../helpers/l10n'; -import { AlmKeys } from '../../../types/alm-settings'; - -export interface ProjectCreationMenuItemProps { - alm: string; -} - -export default function ProjectCreationMenuItem(props: ProjectCreationMenuItemProps) { - const { alm } = props; - let almIcon = alm; - if (alm === AlmKeys.BitbucketCloud) { - almIcon = 'bitbucket'; - } - return ( - <ItemLink - className="sw-flex sw-items-center" - to={{ pathname: '/projects/create', search: queryToSearchString({ mode: alm }) }} - > - {alm !== 'manual' && ( - <Image alt={alm} className="sw-mr-2" width={16} src={`/images/alm/${almIcon}.svg`} /> - )} - {translate('my_account.add_project', alm)} - </ItemLink> - ); -} |