diff --git a/WebServices/client-frontend/src/app/(DashboardLayout)/template/page.tsx b/WebServices/client-frontend/src/app/(DashboardLayout)/template/page.tsx index c6f0e95..0a82ac8 100644 --- a/WebServices/client-frontend/src/app/(DashboardLayout)/template/page.tsx +++ b/WebServices/client-frontend/src/app/(DashboardLayout)/template/page.tsx @@ -2,57 +2,52 @@ import React from "react"; import Template from "@/components/Pages/template/app"; import ClientMenu from "@/components/menuCleint/menu"; -import { LanguageKey } from "@/components/Pages/template/language"; - +import { + getTranslation, + LanguageKey, +} from "@/components/Pages/template/language"; import { retrievePageList } from "@/apicalls/cookies/token"; interface TemplatePageProps { - params: { lang?: string }; searchParams: { [key: string]: string | string[] | undefined }; } -async function TemplatePage({ params, searchParams }: TemplatePageProps) { +async function TemplatePage({ searchParams }: TemplatePageProps) { // Get language from query params or default to 'en' - const pParams = await params; const siteUrlsList = (await retrievePageList()) || []; const searchParamsInstance = await searchParams; - const activePage = "/template"; const lang = (searchParamsInstance?.lang as LanguageKey) || "en"; + const t = getTranslation(lang); return ( <> - <> -