From fa3ba1abf5d8b8dba35fd431a342cc03da270661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Voskuhl?= <juergen.voskuhl@itcv-software.com> Date: Thu, 28 Sep 2023 23:50:55 +0200 Subject: [PATCH] Remove ServiceTag.tsx --- components/ServiceTag.tsx | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 components/ServiceTag.tsx diff --git a/components/ServiceTag.tsx b/components/ServiceTag.tsx deleted file mode 100644 index 797487e..0000000 --- a/components/ServiceTag.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import Chip from '@/components/Chip' -import { Tag } from 'types/content/' -import { translateLabel, translateTag } from '@/lib/utils/labelHelper' - -type ServiceTagOptions = { - tag: Tag, - style: string -} - -const formatLabel = (tag: Tag) => { - return `${translateLabel(tag.name)}: ${translateTag(tag)}` -} - -export default ({ tag, style }: ServiceTagOptions) => { - return ( - <Chip text={formatLabel(tag)} style={`${style} capitalize ${tag.name == 'label' && tag.value == 'external' ? 'hidden' : ''}`} /> - ) -} -- GitLab