Skip to content
Snippets Groups Projects
Commit b3cea7e9 authored by Andy Leuchtturm's avatar Andy Leuchtturm
Browse files

remove chip from ServiceTag für IT-Standards

parent 5d8333e7
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
Pipeline #56098 failed
import Chip from '@/components/Chip'
import { Tag } from 'types/content/' import { Tag } from 'types/content/'
import { translateLabel, translateTag } from '@/lib/utils/labelHelper'
import LifecyclePicture from '@/components/it-standards/LifecyclePicture' import LifecyclePicture from '@/components/it-standards/LifecyclePicture'
type ServiceTagOptions = { type ServiceTagOptions = {
...@@ -8,10 +6,6 @@ type ServiceTagOptions = { ...@@ -8,10 +6,6 @@ type ServiceTagOptions = {
style: string style: string
} }
const formatLabel = (tag: Tag) => {
return `${translateLabel(tag.name)}: ${translateTag(tag)}`
}
export default ({ tag, style }: ServiceTagOptions) => { export default ({ tag, style }: ServiceTagOptions) => {
/* beim tag 'status' soll das zugehörige Lebenszyklus-Bild ausgegeben werden */ /* beim tag 'status' soll das zugehörige Lebenszyklus-Bild ausgegeben werden */
if (tag.name == 'status') { if (tag.name == 'status') {
...@@ -19,7 +13,4 @@ export default ({ tag, style }: ServiceTagOptions) => { ...@@ -19,7 +13,4 @@ export default ({ tag, style }: ServiceTagOptions) => {
<LifecyclePicture {...tag } /> <LifecyclePicture {...tag } />
) )
} }
return (
<Chip text={formatLabel(tag)} style={`${style} capitalize ${tag.name == 'label' && tag.value == 'external' ? 'hidden' : ''}`} />
)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment