diff --git a/apps/tax/next.config.js b/apps/tax/next.config.js
index 7342d2bb..5cfa0db8 100644
--- a/apps/tax/next.config.js
+++ b/apps/tax/next.config.js
@@ -27,6 +27,9 @@ const nextConfig = {
env: {
API_MOCKS: process.env.API_MOCKS ?? '',
},
+ typescript: {
+ ignoreBuildErrors: true,
+ },
}
const plugins = [
diff --git a/apps/tax/pages/tax/index.tsx b/apps/tax/pages/tax/index.tsx
index fa393bc7..9d567dea 100644
--- a/apps/tax/pages/tax/index.tsx
+++ b/apps/tax/pages/tax/index.tsx
@@ -1,16 +1,21 @@
-import React from 'react'
+import React, { useState } from 'react'
-import {
- Box,
- Button,
- Checkbox,
- FormStepperV2,
- Icon,
- Section,
- Text,
-} from '@island.is/island-ui/core'
+import { Box, Button, Divider, FormStepperV2, Section } from '@island.is/island-ui/core'
import FormStepsLayout from '@island.is/tax/screens/Layouts/FormStepsLayout'
+import StepOne from './steps/StepOne'
+import StepTwo from './steps/StepTwo'
+
+const steps = [
+ { title: 'Gagnaöflun', index: 0 },
+ { title: 'Umsækjandi', index: 1 },
+ { title: 'Tekjur', index: 2 },
+ { title: 'Eignir', index: 3 },
+ { title: 'Skuldir og vaxtagjöld', index: 4 },
+ { title: 'Yfirlit', index: 5 },
+ { title: 'Staðfesting', index: 6 },
+]
+
export async function getServerSideProps() {
const taxData = {
country: 'test',
@@ -25,83 +30,62 @@ export async function getServerSideProps() {
}
}
+const renderStep = (step: number) => {
+ switch (step) {
+ case 0:
+ return
+ case 1:
+ return
+ case 2:
+ return
Step3
+ case 3:
+ return Step4
+ case 4:
+ return Step5
+ case 5:
+ return Step6
+ case 6:
+ return Step7
+ default:
+ break
+ }
+}
+
const Tax = ({ taxInfo }) => {
+ const [currentStep, setCurrentStep] = useState(0)
+
return (
(
,
- ,
- ,
- ,
- ,
- ,
- ,
- ]}
+ key={`step-${step.index}`}
+ isActive={step.index === currentStep}
+ section={step.title}
+ sectionIndex={step.index}
+ />
+ ))}
/>
}
>
-
-
- Gagnaöflun
-
-
-
-
-
- Eftirfarandi gögn verða sótt rafrænt
-
-
-
-
- Persónupplýsingar
-
-
- Upplýsingar frá Þjóðskrá um nafn, kennitölu og lögheimili.
-
-
- Netfang og símanúmer
-
-
- Upplýsingar frá Mínum síðum á Ísland.is um netfang og símanúmer.
-
-
- Upplýsingar frá Skattinum
-
-
- Upplýsingar um ráðstöfun persónuafsláttar og greiðslur í lífeyrissjóð
- verður sótt til Skattsins.
-
-
-
-
-
-
+
+ {renderStep(currentStep)}
-