diff --git a/src/api/driftApi.ts b/src/api/driftApi.ts index 37e948ef7..0ca4c7bfe 100644 --- a/src/api/driftApi.ts +++ b/src/api/driftApi.ts @@ -77,7 +77,7 @@ export async function konsistensavstemming(args: { export async function stønadsmottakere(args: { fraOgMed: Nullable; inkluderEPS: boolean; -}): Promise> { +}): Promise> { return apiClient({ url: `/stønadsmottakere`, method: 'POST', diff --git a/src/components/inputs/datePicker/DatePicker.tsx b/src/components/inputs/datePicker/DatePicker.tsx index 6671295c5..b833a5d03 100644 --- a/src/components/inputs/datePicker/DatePicker.tsx +++ b/src/components/inputs/datePicker/DatePicker.tsx @@ -59,6 +59,7 @@ export const DatePicker = (props: { export const MonthPicker = (props: { label: string; + hjelpetekst?: string; value: Nullable; size?: 'medium' | 'small'; fromDate?: Nullable; @@ -76,7 +77,17 @@ export const MonthPicker = (props: { return (
- + + {props.label} + {props.hjelpetekst ? {props.hjelpetekst} : null} +
+ } + size={props.size} + error={props.error} + /> ); diff --git "a/src/pages/drift/components/st\303\270nadsmottakere/St\303\270nadsmottakere.tsx" "b/src/pages/drift/components/st\303\270nadsmottakere/St\303\270nadsmottakere.tsx" index 0f994de19..f6f04df2f 100644 --- "a/src/pages/drift/components/st\303\270nadsmottakere/St\303\270nadsmottakere.tsx" +++ "b/src/pages/drift/components/st\303\270nadsmottakere/St\303\270nadsmottakere.tsx" @@ -47,7 +47,12 @@ const StønadsmottakereModal = (props: { open: boolean; onClose: () => void }) =
- setFraOgMed(dato)} /> + setFraOgMed(dato)} + /> setMedEps(!medEps)} checked={medEps}> Med eps @@ -60,12 +65,11 @@ const StønadsmottakereModal = (props: { open: boolean; onClose: () => void }) = )} {RemoteData.isSuccess(stønadsmottakereStatus) && (
- - +
    - {stønadsmottakereStatus.value.fnr.map((s) => ( + {stønadsmottakereStatus.value.map((s) => (
  • {s}
  • ))}