Skip to content
Snippets Groups Projects
Commit fa3ba1ab authored by Jürgen Voskuhl's avatar Jürgen Voskuhl
Browse files

Remove ServiceTag.tsx

parent 36868295
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
Pipeline #56165 failed
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' : ''}`} />
)
}
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