Skip to content

Commit

Permalink
add requiredindicator to personLookupComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
HauklandJ committed Nov 22, 2024
1 parent 3bc6b21 commit 9852e13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layout/PersonLookup/PersonLookupComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Input } from 'src/app-components/Input/Input';
import { NumericInput } from 'src/app-components/Input/NumericInput';
import { Label } from 'src/app-components/Label/Label';
import { Description } from 'src/components/form/Description';
import { RequiredIndicator } from 'src/components/form/RequiredIndicator';
import { useDataModelBindings } from 'src/features/formData/useDataModelBindings';
import { Lang } from 'src/features/language/Lang';
import { ComponentStructureWrapper } from 'src/layout/ComponentStructureWrapper';
Expand Down Expand Up @@ -148,6 +149,7 @@ export function PersonLookupComponent({ node }: PropsFromGenericComponent<'Perso
htmlFor={`${id}_ssn`}
label='Fødselsnummer'
required={required}
requiredIndicator={<RequiredIndicator required={required} />}
/>
{hasSuccessfullyFetched && <Description description='Fra folkeregisteret' />}
</div>
Expand All @@ -168,6 +170,7 @@ export function PersonLookupComponent({ node }: PropsFromGenericComponent<'Perso
<Label
htmlFor={`${id}_name`}
required={required}
requiredIndicator={<RequiredIndicator required={required} />}
label='Etternavn'
/>
{hasSuccessfullyFetched && <Description description='Fra folkeregisteret' />}
Expand Down

0 comments on commit 9852e13

Please sign in to comment.