Skip to content

Commit

Permalink
fix: section pages runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
geekysilento authored and GetPsyched committed May 14, 2024
1 parent 4bed3b4 commit f8b70b0
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 14 deletions.
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/accounts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/central-library/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/central-workshop/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/estate/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/health-centre/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/security/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/sports/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 5 additions & 1 deletion app/[locale]/institute/sections/store/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f8b70b0

Please sign in to comment.