From aa199e0186055949e7af7b062ff09e67dcc676a8 Mon Sep 17 00:00:00 2001 From: Chris Kim <42885441+chriskim2311@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:56:49 -0800 Subject: [PATCH] Revert "VACMS-19698: Updates to event title tag for browser tabs" (#841) --- src/templates/common/meta/index.tsx | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/templates/common/meta/index.tsx b/src/templates/common/meta/index.tsx index 5443b3ea9..15803029a 100644 --- a/src/templates/common/meta/index.tsx +++ b/src/templates/common/meta/index.tsx @@ -58,21 +58,17 @@ const IOSBanner = () => ( ) -const CustomTags = ({ tags }: { tags: MetaTag[] }) => { - return ( - - {tags.map?.(({ tag: Tag, attributes }, i) => { - if (attributes?.property === 'og:title') { - return {attributes.content} - } else if (attributes?.name === 'title') { - return {attributes.content} - } else { - return - } - })} - - ) -} +const CustomTags = ({ tags }: { tags: MetaTag[] }) => ( + + {tags.map?.(({ tag: Tag, attributes }, i) => + attributes.name === 'title' ? ( + {attributes.content} + ) : ( + + ) + )} + +) const DefaultTags = ({ resource,