diff --git a/app/en-US/about-me/page.tsx b/app/en-US/about-me/page.tsx index 4d86ffb4..5bec9474 100755 --- a/app/en-US/about-me/page.tsx +++ b/app/en-US/about-me/page.tsx @@ -2,7 +2,6 @@ import froukje from '@/app/images/froukje-cover.png'; import glassanimals from '@/app/images/glassanimals.jpeg'; import s10 from '@/app/images/s10.jpeg'; import twofeet from '@/app/images/twofeet.jpeg'; -import checkLanguage from '@/app/utils/checkLanguage'; import Image from 'next/image'; async function getSeoData(lng: string) { @@ -30,13 +29,8 @@ async function getSeoData(lng: string) { return data; } -export async function generateMetadata(props: { params: Promise<{ lang: string }> }) { - const params = await props.params; - - const { lang } = params; - - const lng = checkLanguage(lang); - const metaData = await getSeoData(lng); +export async function generateMetadata() { + const metaData = await getSeoData('en'); return { title: metaData.pagina.seoGegevens.title, @@ -66,13 +60,8 @@ async function getOverMij(lng: string) { return data; } -export default async function overMij(props: { params: Promise<{ lang: string }> }) { - const params = await props.params; - - const { lang } = params; - - const lng = checkLanguage(lang); - const getData = await getOverMij(lng); +export default async function overMij() { + const getData = await getOverMij('en'); const data = getData.overMij; return (
@@ -82,9 +71,7 @@ export default async function overMij(props: { params: Promise<{ lang: string }> className="col-span-full row-start-3 flex w-full flex-col justify-center space-y-2 rounded-lg bg-slate-100 px-10 py-5 pb-10 shadow dark:bg-neutral-800 dark:text-stone-100" > -

- {lng === 'en' ? 'My favorite artists 🎶' : 'Mijn favoriete artiesten 🎶'} -

+

My favorite artists 🎶