Skip to content

Commit

Permalink
fix: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sbsrnt committed Mar 16, 2024
1 parent bc02ed5 commit e4b9c6b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/seo/src/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ type Description = {
encounter: string
}

type Meta =
| Pick<DefaultSeoProps, 'title' | 'description'>
| ((props: Partial<Description>) => Pick<DefaultSeoProps, 'title' | 'description'>)
type Meta = ((props: Partial<Description>) => Pick<DefaultSeoProps, 'title' | 'description'>)

const meta: DefaultSeoProps = {
openGraph: {
Expand All @@ -19,15 +17,15 @@ const meta: DefaultSeoProps = {
},
}

const metaHomepage: Meta = {
const metaHomepage: Meta = () => ({
title: "exile.watch: Master Path of Exile with Visual Ability Insights - Quick, Informative GIFs",
description: "Master Path of Exile with exile.watch: Streamline your game with our quick visual guides and GIFs."
}
})

const metaWelcome: Meta = {
const metaWelcome: Meta = () => ({
title: `Welcome`,
description: "Welcome to your Path of Exile edge with exile.watch: Dive into swift, visual ability insights and GIFs for smarter gameplay."
}
})

const metaDirectory: Meta = ({directory}) => ({
title: `Directory`,
Expand Down

0 comments on commit e4b9c6b

Please sign in to comment.