Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Nov 11, 2024
1 parent c654744 commit a3c41eb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/app/[locale]/(default)/doc/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import DocMenu from './DocMenu'

type Props = {
children: React.ReactNode
params: {
params: Promise<{
locale: string
}
}>
}

export default async function DocLayout({ children, params }: Props) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/[locale]/(default)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import DefaultFooter from './DefaultFooter'

type Props = {
children: React.ReactNode
params: {
params: Promise<{
locale: string
}
}>
}

export default async function DefaultLayout({ children, params }: Props) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const notoSansJP = Noto_Sans_JP({

type Props = {
children: React.ReactNode
params: {
params: Promise<{
locale: string
}
}>
}

export function generateStaticParams() {
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export async function generateMetadata({ params }: Props) {

type Props = {
children: React.ReactNode
params: {
params: Promise<{
locale: string
}
}>
}

export default function RootLayout({
Expand Down
4 changes: 2 additions & 2 deletions src/lib/articles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export const getAllArticles = (articleDirPrefix: string) => {
}

export type ArticlePageProps = {
params: {
params: Promise<{
locale: string
slug: string[]
}
}>
}

export const getDataForArticlePageByFilename = (filename: string) => {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { getGroupDir } from './utils'
import { getTranslations } from 'next-intl/server'

export type PageProps = {
params: {
params: Promise<{
locale: string
}
}>
}

export const getDataForPageByFilename = (filename: string) => {
Expand Down

0 comments on commit a3c41eb

Please sign in to comment.