-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3635 from navikt/feature/afp-offentlig-frontend
Feature/afp offentlig frontend
- Loading branch information
Showing
19 changed files
with
511 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
apps/dolly-frontend/src/main/js/src/components/fagsystem/afpOffentlig/afpOffentligTypes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export type BeloepTypes = { | ||
fomDato: Date | ||
belop: string | ||
} | ||
|
||
export type MocksvarTypes = { | ||
tpId: string | ||
statusAfp: string | ||
virkningsDato: Date | ||
sistBenyttetG: number | ||
belopsListe: Array<BeloepTypes> | ||
} | ||
|
||
export type AfpOffentligTypes = { | ||
direktekall: Array<string> | ||
mocksvar: Array<MocksvarTypes> | ||
} |
18 changes: 18 additions & 0 deletions
18
apps/dolly-frontend/src/main/js/src/components/fagsystem/afpOffentlig/form/BeloepForm.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { FormDollyFieldArray } from '@/components/ui/form/fieldArray/DollyFieldArray' | ||
import { initialBeloep } from '@/components/fagsystem/afpOffentlig/initialValues' | ||
import React from 'react' | ||
import { FormTextInput } from '@/components/ui/form/inputs/textInput/TextInput' | ||
import { FormDatepicker } from '@/components/ui/form/inputs/datepicker/Datepicker' | ||
|
||
export const BelopForm = ({ path }: { path: string }) => { | ||
return ( | ||
<FormDollyFieldArray name={path} header="Beløp" newEntry={initialBeloep} nested> | ||
{(belop: string, idx: number) => ( | ||
<div key={idx} className="flexbox"> | ||
<FormDatepicker name={`${belop}.fomDato`} label="F.o.m. dato" /> | ||
<FormTextInput name={`${belop}.belop`} label="Beløp" type="number" /> | ||
</div> | ||
)} | ||
</FormDollyFieldArray> | ||
) | ||
} |
Oops, something went wrong.