diff --git a/website/src/app/[lang]/[region]/(survey-tool)/survey/[recipient]/[survey]/layout.tsx b/website/src/app/[lang]/[region]/(survey-tool)/survey/[recipient]/[survey]/layout.tsx index 9108b04dd..8f82e604f 100644 --- a/website/src/app/[lang]/[region]/(survey-tool)/survey/[recipient]/[survey]/layout.tsx +++ b/website/src/app/[lang]/[region]/(survey-tool)/survey/[recipient]/[survey]/layout.tsx @@ -1,10 +1,9 @@ -import { CURRENCY_COOKIE, DefaultParams } from '@/app/[lang]/[region]'; +import { DefaultParams } from '@/app/[lang]/[region]'; import { I18nDialog } from '@/components/i18n-dialog'; import { SILogo } from '@/components/logos/si-logo'; import { GlobeEuropeAfricaIcon, LanguageIcon } from '@heroicons/react/24/solid'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer, Button } from '@socialincome/ui'; -import { cookies } from 'next/headers'; import { PropsWithChildren } from 'react'; export interface SurveyPageProps { @@ -14,7 +13,7 @@ export interface SurveyPageProps { } & DefaultParams; } -export default async function Layout({ children, params: { lang, region } }: PropsWithChildren) { +export default async function Layout({ children, params: { lang } }: PropsWithChildren) { const translator = await Translator.getInstance({ language: lang, namespaces: ['common', 'website-common', 'website-me'], @@ -34,11 +33,8 @@ export default async function Layout({ children, params: { lang, region } }: Pro currencies={[]} translations={{ language: translator.t('language'), - currentLanguage: translator.t(`languages.${lang}`), region: translator.t('region'), - currentRegion: translator.t(`regions.${region}`), currency: translator.t('currency'), - currentCurrency: translator.t(`currencies.${cookies().get(CURRENCY_COOKIE)}`), }} >