diff --git a/app/[locale]/institute/sections/accounts/page.tsx b/app/[locale]/institute/sections/accounts/page.tsx index 126181c7..4459fe8a 100644 --- a/app/[locale]/institute/sections/accounts/page.tsx +++ b/app/[locale]/institute/sections/accounts/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function Accounts({ locale }: { locale: string }) { +export default async function Accounts({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.Account; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/central-library/page.tsx b/app/[locale]/institute/sections/central-library/page.tsx index 2e51bccb..2b32b038 100644 --- a/app/[locale]/institute/sections/central-library/page.tsx +++ b/app/[locale]/institute/sections/central-library/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function CentralLibrary({ locale }: { locale: string }) { +export default async function CentralLibrary({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.CentralLibrary; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/central-workshop/page.tsx b/app/[locale]/institute/sections/central-workshop/page.tsx index caee938d..f317db9f 100644 --- a/app/[locale]/institute/sections/central-workshop/page.tsx +++ b/app/[locale]/institute/sections/central-workshop/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function CentralWorkshop({ locale }: { locale: string }) { +export default async function CentralWorkshop({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.CentralWorkshop; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/centre-of-computing-and-networking/page.tsx b/app/[locale]/institute/sections/centre-of-computing-and-networking/page.tsx index 3d1caeed..8da255c4 100644 --- a/app/[locale]/institute/sections/centre-of-computing-and-networking/page.tsx +++ b/app/[locale]/institute/sections/centre-of-computing-and-networking/page.tsx @@ -3,9 +3,9 @@ import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; export default async function CentreOfComputingAndNetworking({ - locale, + params: { locale }, }: { - locale: string; + params: { locale: string }; }) { const text = (await getTranslations(locale)).Section .CentreOfComputingAndNetworking; diff --git a/app/[locale]/institute/sections/electrical-maintenance/page.tsx b/app/[locale]/institute/sections/electrical-maintenance/page.tsx index 2fc6f9cb..5278183b 100644 --- a/app/[locale]/institute/sections/electrical-maintenance/page.tsx +++ b/app/[locale]/institute/sections/electrical-maintenance/page.tsx @@ -3,9 +3,9 @@ import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; export default async function ElectricalMaintenance({ - locale, + params: { locale }, }: { - locale: string; + params: { locale: string }; }) { const text = (await getTranslations(locale)).Section.ElectricalMaintenance; diff --git a/app/[locale]/institute/sections/estate/page.tsx b/app/[locale]/institute/sections/estate/page.tsx index f7866aed..63bdc12b 100644 --- a/app/[locale]/institute/sections/estate/page.tsx +++ b/app/[locale]/institute/sections/estate/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function Estate({ locale }: { locale: string }) { +export default async function Estate({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.Estate; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/general-administration/page.tsx b/app/[locale]/institute/sections/general-administration/page.tsx index c97d18a9..a8d7b0e5 100644 --- a/app/[locale]/institute/sections/general-administration/page.tsx +++ b/app/[locale]/institute/sections/general-administration/page.tsx @@ -3,9 +3,9 @@ import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; export default async function GeneralAdministration({ - locale, + params: { locale }, }: { - locale: string; + params: { locale: string }; }) { const text = (await getTranslations(locale)).Section.GeneralAdministration; diff --git a/app/[locale]/institute/sections/health-centre/page.tsx b/app/[locale]/institute/sections/health-centre/page.tsx index bd07d90a..8886c0d3 100644 --- a/app/[locale]/institute/sections/health-centre/page.tsx +++ b/app/[locale]/institute/sections/health-centre/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function HealthCentre({ locale }: { locale: string }) { +export default async function HealthCentre({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.HealthCentre; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/security/page.tsx b/app/[locale]/institute/sections/security/page.tsx index 4c8b3c30..e3a0da90 100644 --- a/app/[locale]/institute/sections/security/page.tsx +++ b/app/[locale]/institute/sections/security/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function Security({ locale }: { locale: string }) { +export default async function Security({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.Security; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/sports/page.tsx b/app/[locale]/institute/sections/sports/page.tsx index 1f04f5c5..08a23bee 100644 --- a/app/[locale]/institute/sections/sports/page.tsx +++ b/app/[locale]/institute/sections/sports/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function Sports({ locale }: { locale: string }) { +export default async function Sports({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.Sports; const section = (await db.query.sections.findFirst({ diff --git a/app/[locale]/institute/sections/store/page.tsx b/app/[locale]/institute/sections/store/page.tsx index 60a8b901..768c0983 100644 --- a/app/[locale]/institute/sections/store/page.tsx +++ b/app/[locale]/institute/sections/store/page.tsx @@ -2,7 +2,11 @@ import WorkInProgress from '~/components/work-in-progress'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; -export default async function Store({ locale }: { locale: string }) { +export default async function Store({ + params: { locale }, +}: { + params: { locale: string }; +}) { const text = (await getTranslations(locale)).Section.Store; const section = (await db.query.sections.findFirst({