Skip to content

Commit

Permalink
Rename 'foedsel' to 'foedselsdato' in utility and search files
Browse files Browse the repository at this point in the history
Updated the property name 'foedsel' to 'foedselsdato' for consistency across the utils.tsx and Alder.tsx files. This change ensures uniform naming conventions are maintained and enhances code readability. Adjusted related paths and labels accordingly.
  • Loading branch information
krharum committed Sep 2, 2024
1 parent c0c3aa6 commit a9335bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { UseFormReturn } from 'react-hook-form/dist/types'
const paths = {
fra: 'alder.fra',
til: 'alder.til',
fom: 'foedsel.fom',
tom: 'foedsel.tom',
fom: 'foedselsdato.fom',
tom: 'foedselsdato.tom',
}

type Props = {
Expand Down Expand Up @@ -38,18 +38,8 @@ export const Alder = ({ formMethods }: Props) => (
formMethods.handleSubmit()
}}
/>
<FormDatepicker
name={paths.fom}
label="Fødselsdato fom"
visHvisAvhuket={false}
size="medium"
/>
<FormDatepicker
name={paths.tom}
label="Fødselsdato tom"
visHvisAvhuket={false}
size="medium"
/>
<FormDatepicker name={paths.fom} label="Fødselsdato fom" visHvisAvhuket={false} size="medium" />
<FormDatepicker name={paths.tom} label="Fødselsdato tom" visHvisAvhuket={false} size="medium" />
</section>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const initialValues = {
fra: '',
til: '',
},
foedsel: {
foedselsdato: {
fom: '',
tom: '',
},
Expand Down

0 comments on commit a9335bc

Please sign in to comment.