Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Oct 17, 2024
1 parent 7902b87 commit 39cd121
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/docs/src/app/(docs)/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import TableOfContents from '@/components/TableOfContents'
import { getFileRaw } from '@/lib/raw'

type PageProps = {
params: {
slug: string[]
}
params: Promise<{ slug: string[] }>
}

export const generateMetadata = async (props: PageProps) => {
const params = await props.params;
const params = await props.params
const { slug } = params
const docs = getDocData(slug)

Expand All @@ -27,7 +25,7 @@ export async function generateStaticParams() {
}

export default async function PageLayout(props: PageProps) {
const params = await props.params;
const params = await props.params
const { slug } = params
const docs = getDocData(slug)

Expand Down

0 comments on commit 39cd121

Please sign in to comment.