11import type { Metadata } from 'next' ;
2- import { getTranslations , unstable_setRequestLocale } from 'next-intl/server' ;
2+ import { getTranslations } from 'next-intl/server' ;
33
4- import Link from '@components/atoms/Link' ;
54import type { PageProps } from '@app/interfaces' ;
65import { getTimeDuration } from '@app/utils' ;
76import AvailabilityIndicator from '@components/atoms/AvailabilityIndicator' ;
87import HighlightLabel from '@components/atoms/HighlightLabel' ;
98import JsonLd from '@components/atoms/JsonLd' ;
9+ import Link from '@components/atoms/Link' ;
1010import LinkButton from '@components/atoms/LinkButton' ;
1111import CareerList from '@components/organisms/CareerList' ;
1212import CertificationList from '@components/organisms/CertificationList' ;
@@ -20,20 +20,18 @@ export const generateMetadata = async ({ params }: PageProps): Promise<Metadata>
2020 return generatePageMeta ( '/' , locale ) ;
2121} ;
2222
23- const HomePage = async ( { params } : PageProps ) => {
24- const { locale } = await params ;
25- unstable_setRequestLocale ( locale ) ;
23+ const HomePage = async ( ) => {
2624 const t = await getTranslations ( 'pages.home' ) ;
27-
25+
2826 const jsonLd = generateProfileJson ( ) ;
2927 const aboutTextOptions = {
3028 highlight : ( label : React . ReactNode ) => < HighlightLabel > { label } </ HighlightLabel > ,
3129 years : getTimeDuration ( '2014-02-01' ) ,
32- } ;
30+ } as any ;
3331
3432 return (
3533 < >
36- < PageContainer name = "home" narrow >
34+ < PageContainer name = "home" >
3735 < PageSection id = "about" first >
3836 < h1 className = "text-h1" > { t ( 'about.title' ) } </ h1 >
3937
0 commit comments