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

Relopcate PageheaderCard.tsx

parent fa3ba1ab
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
Pipeline #56167 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' : ''}`} />
)
}
import { Tag } from 'types/content/'
import LifecyclePicture from '@/components/it-standards/LifecyclePicture'
type ServiceTagOptions = {
tag: Tag,
style: string
}
export default ({ tag, style }: ServiceTagOptions) => {
/* beim tag 'status' soll das zugehörige Lebenszyklus-Bild ausgegeben werden */
if (tag.name == 'status') {
return (
<LifecyclePicture {...tag } />
)
}
}
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