+
+ ({
+ active: activeTab === index,
+ label:
+ periode.fom && periode.tom
+ ? `${formatDate(periode.fom)} - ${formatDate(periode.tom)}`
+ : `Periode ${index + 1}`,
+ icon:
+ (erOverstyrt || harÅpentUløstAksjonspunkt) && vilkarStatus === vilkårStatus.IKKE_VURDERT ? (
+
+ ) : null,
+ }))}
+ onClick={setActiveTab}
+ theme="arrow"
+ heading="Perioder"
+ />
+
+ {activePeriode && (
+
+
+
+
+ )}
+
+ );
+};
+
+export default SoknadsfristVilkarProsessIndex;
diff --git a/packages/v2/gui/src/prosess/vilkar-soknadsfrist/components/FormState.ts b/packages/v2/gui/src/prosess/vilkar-soknadsfrist/components/FormState.ts
new file mode 100644
index 0000000000..c0e4299ac4
--- /dev/null
+++ b/packages/v2/gui/src/prosess/vilkar-soknadsfrist/components/FormState.ts
@@ -0,0 +1,11 @@
+interface AvklarteKrav {
+ erVilkarOk: string | boolean | null;
+ begrunnelse?: string;
+ journalpostId: string;
+ fraDato: string;
+}
+
+export interface FormState {
+ isOverstyrt: boolean;
+ avklarteKrav: AvklarteKrav[];
+}
diff --git a/packages/v2/gui/src/prosess/vilkar-soknadsfrist/components/OverstyrBekreftKnappPanel.tsx b/packages/v2/gui/src/prosess/vilkar-soknadsfrist/components/OverstyrBekreftKnappPanel.tsx
new file mode 100644
index 0000000000..00984c4c91
--- /dev/null
+++ b/packages/v2/gui/src/prosess/vilkar-soknadsfrist/components/OverstyrBekreftKnappPanel.tsx
@@ -0,0 +1,21 @@
+import { Button } from '@navikt/ds-react';
+
+interface OwnProps {
+ disabled?: boolean;
+ submitting: boolean;
+ pristine: boolean;
+ overrideReadOnly: boolean;
+}
+
+const OverstyrBekreftKnappPanel = ({ disabled = false, submitting, pristine, overrideReadOnly }: OwnProps) => {
+ if (overrideReadOnly) {
+ return null;
+ }
+ return (
+
+
+ {dokument.type} innsendt {formatDate(dokument.innsendingstidspunkt)}{' '}
+ (journalpostId: {dokument.journalpostId})
+
+ {skalViseBegrunnelse && (
+ <>
+
+ >
+ )}
+
+ {readOnly && erVilkarOk !== undefined && (
+ <>
+
+
+ {erVilkarOk ? (
+
+ ) : (
+
+ )}
+
+
+ {erVilkarOk && Vilkåret er oppfylt for hele perioden}
+ {!erVilkarOk && (
+
+ Vilkåret er ikke oppfylt for denne perioden
+
+ )}
+
+
+
+ >
+ )}
+ {(!readOnly || erVilkarOk === undefined) && (
+
+
+
+ ),
+ },
+ {
+ value: 'false',
+ label: (
+ <>
+ Vilkåret er