From 0afc01197174196c6b58fbcd81e6aa227fc348c4 Mon Sep 17 00:00:00 2001 From: mo Date: Tue, 3 May 2022 14:39:04 -0500 Subject: [PATCH] AzureGitTagsIcon Signed-off-by: mo --- .../AzureGitTagsIcon/AzureGitTagsIcon.tsx | 26 +++++++++++++++++++ .../src/components/AzureGitTagsIcon/index.ts | 17 ++++++++++++ .../components/GitTagTable/GitTagTable.tsx | 4 +-- 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 plugins/azure-devops/src/components/AzureGitTagsIcon/AzureGitTagsIcon.tsx create mode 100644 plugins/azure-devops/src/components/AzureGitTagsIcon/index.ts diff --git a/plugins/azure-devops/src/components/AzureGitTagsIcon/AzureGitTagsIcon.tsx b/plugins/azure-devops/src/components/AzureGitTagsIcon/AzureGitTagsIcon.tsx new file mode 100644 index 0000000000..c8b63e3259 --- /dev/null +++ b/plugins/azure-devops/src/components/AzureGitTagsIcon/AzureGitTagsIcon.tsx @@ -0,0 +1,26 @@ +/* + * Copyright 2021 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { SvgIcon, SvgIconProps } from '@material-ui/core'; + +import React from 'react'; + +// From https://github.com/microsoft/fluentui-system-icons/blob/30a3e3c458883a1d63a43a951407f30e6b32b60c/assets/Tag/SVG/ic_fluent_tag_32_regular.svg +export const AzureGitTagsIcon = (props: SvgIconProps) => ( + + + +); diff --git a/plugins/azure-devops/src/components/AzureGitTagsIcon/index.ts b/plugins/azure-devops/src/components/AzureGitTagsIcon/index.ts new file mode 100644 index 0000000000..92660244a5 --- /dev/null +++ b/plugins/azure-devops/src/components/AzureGitTagsIcon/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright 2021 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { AzureGitTagsIcon } from './AzureGitTagsIcon'; diff --git a/plugins/azure-devops/src/components/GitTagTable/GitTagTable.tsx b/plugins/azure-devops/src/components/GitTagTable/GitTagTable.tsx index b3fa05d6db..55a5f6602e 100644 --- a/plugins/azure-devops/src/components/GitTagTable/GitTagTable.tsx +++ b/plugins/azure-devops/src/components/GitTagTable/GitTagTable.tsx @@ -24,7 +24,7 @@ import { import { GitTag } from '@backstage/plugin-azure-devops-common'; import React from 'react'; -import { AzurePullRequestsIcon } from '../AzurePullRequestsIcon'; +import { AzureGitTagsIcon } from '../AzureGitTagsIcon'; import { useEntity } from '@backstage/plugin-catalog-react'; import { useGitTags } from '../../hooks/useGitTags'; @@ -83,7 +83,7 @@ export const GitTagTable = () => { }} title={ - + Azure Repos - Git Tags ({items ? items.length : 0})