Move to react-helmet-async (#72)

* feat: move to react-helmet-async

* feat: set version to v0.11.0
This commit is contained in:
Valerio Ageno
2024-11-03 21:09:32 +01:00
committed by GitHub
parent 7e6dea68f4
commit d04a4c4103
12 changed files with 41 additions and 37 deletions
@@ -2,21 +2,21 @@ import { Head, type TuonoProps } from 'tuono'
import PokemonView from '../../components/PokemonView'
interface Pokemon {
name: string
id: string
weight: number
height: number
name: string
id: string
weight: number
height: number
}
export default function PokemonPage({
data,
data,
}: TuonoProps<Pokemon>): JSX.Element {
return (
<>
<Head>
<title>Pokemon: {data?.name}</title>
</Head>
<PokemonView pokemon={data} />
</>
)
return (
<>
<Head>
<title>{`Pokemon: ${data?.name}`}</title>
</Head>
<PokemonView pokemon={data} />
</>
)
}