File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
app/src/app/[locale]/serverAction Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -26,23 +26,22 @@ export async function generateMetadata({ params }: { params: RouteParams }) {
26
26
return meta ;
27
27
}
28
28
29
- type Props = {
30
- locale ?: string ;
31
- } ;
29
+ interface Props {
30
+ params : RouteParams ;
31
+ }
32
32
33
- export function SimpleForm ( { locale } : Props ) {
33
+ export default function SimpleForm ( { params } : Props ) {
34
+ const { locale } = params ;
34
35
const messages = useMessages ( ) ;
35
36
const t = useTranslations ( "serverAction" ) ;
36
37
37
38
return (
38
- < >
39
- < NextIntlClientProvider
40
- locale = { locale }
41
- messages = { pick ( messages , "serverAction" ) }
42
- >
43
- < h1 > { t ( "title" ) } </ h1 >
44
- < ClientForm />
45
- </ NextIntlClientProvider >
46
- </ >
39
+ < NextIntlClientProvider
40
+ locale = { locale }
41
+ messages = { pick ( messages , "serverAction" ) }
42
+ >
43
+ < h1 > { t ( "title" ) } </ h1 >
44
+ < ClientForm />
45
+ </ NextIntlClientProvider >
47
46
) ;
48
47
}
You can’t perform that action at this time.
0 commit comments