Skip to content

Commit 3b9e6c9

Browse files
authored
Apply suggestions from code review
1 parent 149bcbe commit 3b9e6c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,14 @@ The `locale` that was matched by the middleware is available via the `locale` pa
223223
import {NextIntlClientProvider, hasLocale} from 'next-intl';
224224
import {notFound} from 'next/navigation';
225225
import {routing} from '@/i18n/routing';
226-
import type { PropsWithChildren } from 'react';
227226

228227
export default async function LocaleLayout({
229228
children,
230229
params
231-
}: PropsWithChildren<{ readonly params: Promise<{ locale: string }> }) {
230+
}: {
231+
children: React.ReactNode;
232+
params: Promise<{locale: string}>;
233+
}) {
232234
// Ensure that the incoming `locale` is valid
233235
const {locale} = await params;
234236
if (!hasLocale(routing.locales, locale)) {

0 commit comments

Comments
 (0)