Skip to content

Commit

Permalink
Revert "VACMS-19698: Updates to event title tag for browser tabs" (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskim2311 authored Dec 16, 2024
1 parent 62fa075 commit aa199e0
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/templates/common/meta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,17 @@ const IOSBanner = () => (
</Head>
)

const CustomTags = ({ tags }: { tags: MetaTag[] }) => {
return (
<Head>
{tags.map?.(({ tag: Tag, attributes }, i) => {
if (attributes?.property === 'og:title') {
return <title key={i}>{attributes.content}</title>
} else if (attributes?.name === 'title') {
return <title key={i}>{attributes.content}</title>
} else {
return <Tag key={i} {...attributes} />
}
})}
</Head>
)
}
const CustomTags = ({ tags }: { tags: MetaTag[] }) => (
<Head>
{tags.map?.(({ tag: Tag, attributes }, i) =>
attributes.name === 'title' ? (
<title key={i}>{attributes.content}</title>
) : (
<Tag key={i} {...attributes} />
)
)}
</Head>
)

const DefaultTags = ({
resource,
Expand Down

0 comments on commit aa199e0

Please sign in to comment.