Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit 8b7e597

Browse files
committed
tslint
1 parent 97afae5 commit 8b7e597

File tree

4 files changed

+16
-36
lines changed

4 files changed

+16
-36
lines changed

src/components/Introduction.tsx

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,17 @@
1-
import {
2-
Checkbox,
3-
ConfirmationPanel,
4-
Heading,
5-
Radio,
6-
RadioGroup,
7-
} from "@navikt/ds-react";
1+
import { ConfirmationPanel, Heading } from "@navikt/ds-react";
82
import Spacer from "./Spacer";
93
import NavPanelWithButtons from "./NavPanelWithButtons";
104
import { CommonFormProps } from "../pages/form";
115
import { FormEvent, useState } from "react";
126

137
export default function Introduction(props: CommonFormProps) {
14-
const {
15-
questionWork,
16-
setQuestionWork,
17-
questionMeasures,
18-
setQuestionMeasures,
19-
questionIllness,
20-
setQuestionIllness,
21-
questionVacation,
22-
setQuestionVacation,
23-
nextStep,
24-
showLoader,
25-
} = props;
8+
const { nextStep, showLoader } = props;
269

27-
const [isChecked, setIsChecked] = useState<boolean>(false);
2810
const [notShow, setNotShow] = useState<boolean>(false);
2911

3012
// Check form
3113
const checkForm = (event: FormEvent) => {
32-
setIsChecked(true);
33-
34-
if (true) {
35-
nextStep(event);
36-
}
14+
nextStep(event);
3715
};
3816

3917
// Render

src/components/Step4.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import { ActivityType } from "../models/Data";
1010
export default function Step4(props: CommonFormProps) {
1111
const {
1212
questionWork,
13-
questionMeasures,
14-
questionIllness,
15-
questionVacation,
1613
savedDates,
1714
questionProceed,
1815
questionConsent,

src/pages/_document.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
import Document, { DocumentContext, Head, Html, Main, NextScript, } from "next/document";
1+
import Document, {
2+
DocumentContext,
3+
Head,
4+
Html,
5+
Main,
6+
NextScript,
7+
} from "next/document";
28
import {
39
Components as DecoratorComponents,
410
Env,
511
fetchDecoratorReact,
6-
Props as DecoratorProps
12+
Props as DecoratorProps,
713
} from "@navikt/nav-dekoratoren-moduler/ssr";
814

915
export default class MyDocument extends Document<DecoratorComponents> {
@@ -16,16 +22,16 @@ export default class MyDocument extends Document<DecoratorComponents> {
1622
availableLanguages: [
1723
{
1824
locale: "nb",
19-
handleInApp: true
25+
handleInApp: true,
2026
},
2127
{
2228
locale: "en",
23-
handleInApp: true
24-
}
29+
handleInApp: true,
30+
},
2531
],
26-
language: "nb"
32+
language: "nb",
2733
};
28-
34+
//t
2935
const Dekorator: DecoratorComponents = await fetchDecoratorReact({
3036
...dekoratorProps,
3137
}).catch((err) => {

src/pages/form.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import CancelButton from "../components/CancelButton";
99
import { format, getISOWeek } from "date-fns";
1010
import {
1111
Dispatch,
12-
FormEvent,
1312
FormEventHandler,
1413
SetStateAction,
1514
useEffect,

0 commit comments

Comments
 (0)