11'use client' ;
22
3+ < < << << < HEAD
34< < < << << HEAD
45import { useParams } from 'next/navigation' ;
56import {
@@ -9,25 +10,39 @@ import {
910} from 'pydantic-forms' ;
1011= === ===
1112>>> >>> > 6 b4540b ( Cleanup )
13+ === = ===
14+ import { useParams } from 'next/navigation' ;
15+ > >>> >>> 305 eba5 ( prettier )
1216import type {
1317 PydanticComponentMatcher ,
1418 PydanticFormApiProvider ,
1519 PydanticFormCustomDataProvider ,
1620 PydanticFormLabelProvider ,
1721} from 'pydantic-forms' ;
18- import { PydanticForm , PydanticFormFieldFormat , PydanticFormFieldType , } from 'pydantic-forms' ;
22+ import {
23+ PydanticForm ,
24+ PydanticFormFieldFormat ,
25+ PydanticFormFieldType ,
26+ } from 'pydantic-forms' ;
1927
28+ < < << << < HEAD
2029< < < << << HEAD
2130import { TextArea } from '@/fields' ;
2231
2332import NLnl from '../../../messages/nl-NL.json' ;
2433= === ===
2534import { TextArea } from '@/fields' ;
2635import { useParams } from "next/navigation" ;
36+ = === ===
37+ import {
38+ handleInvalidLocale ,
39+ useGetTranslationMessages ,
40+ } from '@/app/[locale]/useGetTranslationMessages' ;
41+ import { TextArea } from '@/fields' ;
42+ > >>> >>> 305 eba5 ( prettier )
2743
2844>>> > >>> 6 b4540b ( Cleanup )
2945import styles from '../page.module.css' ;
30- import { handleInvalidLocale , useGetTranslationMessages } from "@/app/[locale]/useGetTranslationMessages" ;
3146
3247< < << << < HEAD
3348export default function Home ( {
@@ -39,7 +54,7 @@ export default function Home({
3954 const locale = params ?. locale as string ; // Get locale from URL params
4055= === ===
4156export default function Home ( ) {
42- const { locale} = useParams ( ) ;
57+ const { locale } = useParams ( ) ;
4358 const validLocale = handleInvalidLocale ( locale ) ;
4459> >>> >>> 6 b4540b ( Cleanup )
4560
@@ -79,6 +94,17 @@ export default function Home() {
7994 } ) ;
8095 } ;
8196
97+ < < << << < HEAD
98+ = === ===
99+ const ResetButtonAlternative = ( ) => (
100+ < button type = "button" > Alternative reset</ button >
101+ ) ;
102+
103+ const CancelButtonAlternative = ( ) => (
104+ < button type = "button" > Alternative cancel</ button >
105+ ) ;
106+
107+ > >>> >>> 305 eba5 ( prettier )
82108 const componentMatcher = (
83109 currentMatchers : PydanticComponentMatcher [ ] ,
84110 ) : PydanticComponentMatcher [ ] => {
@@ -124,6 +150,7 @@ export default function Home() {
124150 customDataProvider : pydanticCustomDataProvider ,
125151 componentMatcher : componentMatcher ,
126152< << << << HEAD
153+ < < << << < HEAD
127154< << << << HEAD
128155 translations : NLnl ,
129156= === ===
@@ -133,6 +160,10 @@ export default function Home() {
133160 translations : useGetTranslationMessages ( validLocale ) , //Comment this line for default translations
134161 locale : validLocale
135162>>> > >>> 07848e9 ( Some refactor )
163+ === = ===
164+ translations : useGetTranslationMessages ( validLocale ) , //Comment this line for default translations
165+ locale : validLocale ,
166+ > >>> >>> 305 eba5 ( prettier )
136167 } }
137168 />
138169 </ div >
0 commit comments