diff --git a/components/it-standards/InfoBoxes.tsx b/components/it-standards/InfoBoxes.tsx index b70421f97711c93d704cfa312e797145fa47bd7f..e9cbb1d8e2fcb479ab75884b0063123fff0382f3 100644 --- a/components/it-standards/InfoBoxes.tsx +++ b/components/it-standards/InfoBoxes.tsx @@ -80,7 +80,7 @@ export function InfoBoxes({ (supportInfo.map((myItem: LinkItem, key) => { return ( <div className="flex" key={`${key}`}> - { (myItem.url !== '' + { (myItem.url !== '' ? <div className={'leading-7 ' + `${myItem.name}`}> <Link href={myItem.url} passHref legacyBehavior> <a target="_blank">{myItem.name}</a> @@ -106,7 +106,7 @@ export function InfoBoxes({ return ( <div className="flex" key={`${key}`}> <div className={'leading-7'}> - { myItem.url === 'n.v.' + { myItem.url === 'n.v.' ? getArtefactName(myItem) + ' (n.v.)' : <Link href={myItem.url} passHref legacyBehavior> <a target="_blank">{ diff --git a/components/it-standards/PageHeaderCard.tsx b/components/it-standards/PageHeaderCard.tsx index fe0b49b26b3073fcedcc7bce9b367f03a600e833..bd2dcec4a1eff5c5d02c3cb49e7a509320b95e65 100644 --- a/components/it-standards/PageHeaderCard.tsx +++ b/components/it-standards/PageHeaderCard.tsx @@ -56,8 +56,8 @@ export default ({ title, description, img, status, children }: HeaderOptions) => </div> </div> { - (children !== undefined ? - <div className="p-6 bg-gray-50 rounded-b-lg md:px-8 flex flex-row items-center gap-16"> + (children !== undefined + ? <div className="p-6 bg-gray-50 rounded-b-lg md:px-8 flex flex-row items-center gap-16"> {children} </div> : null diff --git a/pages/standards/index.tsx b/pages/standards/index.tsx index d80c2690768ac5a8601e86a4ae304035b0d3cb9a..7170a4048f76ebf25a942e1573c18a96f06d01df 100644 --- a/pages/standards/index.tsx +++ b/pages/standards/index.tsx @@ -59,11 +59,6 @@ export default function ({ contentsString }) { return content.childResources.length > 0 } - function getContactTypeName(contactType: string) { - const found = MY_CONSTANTS.CONTACT_TYPES.filter((item) => item.id === contactType)[0] - return (found !== undefined ? found.text : '#INVALID') - } - return ( <div className='container it-standards'> <div className=""> @@ -166,8 +161,6 @@ export default function ({ contentsString }) { </div> </div> - - {/* OLD! <div className="container flex flex-col md:flex-row my-2"> {service.tags.map((tag: Tag, key: number) => { @@ -190,7 +183,7 @@ export default function ({ contentsString }) { <div className="inline-flex "> {/* Render contact tags */} { - (service.productOwner.organisation !== '' + (service.productOwner.organisation !== '' ? <div className=""> <div className={`${MY_CONSTANTS.BG_COLORS.ROLES} inline-flex items-center text-xs px-2 py-1 my-1 mr-4 rounded-full`}> <div className="flex-shrink-0 w-4 ml-1 mr-2 max-h-3 flex align-bottom">