Skip to content

Commit

Permalink
Fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexristinmaa committed Dec 8, 2024
1 parent 33ba970 commit 5065a33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alexanderristinmaa/app/[lang]/(homepage)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function RootLayout({
params
}: Readonly<{
children: React.ReactNode,
params: {lang: string}
params: Promise<{lang: string}>
}>) {
const lang = (await params).lang;
const dict = await getDictionary(lang);
Expand Down
2 changes: 1 addition & 1 deletion alexanderristinmaa/app/[lang]/(homepage)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as fs from 'fs';
import parseMD from 'parse-md';
import { getDictionary } from '../dictionaries';

export default async function Home({params} : {params: { lang: string } }) {
export default async function Home({params} : {params: Promise<{lang: string}> }) {
const experimentsPath = './app/experiments';

const getExperiments = () => {
Expand Down
2 changes: 1 addition & 1 deletion alexanderristinmaa/app/[lang]/hemligt/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from 'next/link';
import Catimation from './catimation';
import { getDictionary } from '../dictionaries';

export default async function Home({params} : {params: { lang: string } }) {
export default async function Home({params} : {params: Promise<{lang: string}> }) {
const lang = (await params).lang;
const dict = await getDictionary(lang);

Expand Down
2 changes: 1 addition & 1 deletion alexanderristinmaa/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function generateStaticParams() {
return getLanguages()
}

export default async function Root({ children, params } : { children: React.ReactNode, params: { lang: string } }) {
export default async function Root({ children, params } : { children: React.ReactNode, params: Promise<{lang: string}> }) {
const lang = (await params).lang;

return (
Expand Down

0 comments on commit 5065a33

Please sign in to comment.