diff --git a/libs/application/templates/reference-template/src/fields/Logo.tsx b/libs/application/templates/reference-template/src/fields/Logo.tsx deleted file mode 100644 index 03e671fafa06..000000000000 --- a/libs/application/templates/reference-template/src/fields/Logo.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import React, { useEffect, useState } from 'react' -import { getValueViaPath } from '@island.is/application/core' -import { Application } from '@island.is/application/types' -type Props = { - application: Application -} -export const Logo = ({ application }: Props) => { - const [logo, setLogo] = useState() - console.log(application.externalData) - const nationalId = getValueViaPath( - application.externalData, - 'nationalRegistry.data.nationalId', - ) - console.log(nationalId) - - useEffect(() => { - const getLogo = async () => { - if (nationalId === '0101302399') { - const svgLogo = await import(`./akureyri.svg`) - setLogo(svgLogo.default) - } else { - const svgLogo = await import(`./akrahreppur.svg`) - setLogo(svgLogo.default) - } - } - getLogo() - }, []) - return Municipality logo -} diff --git a/libs/application/templates/reference-template/src/fields/akrahreppur.svg b/libs/application/templates/reference-template/src/fields/akrahreppur.svg deleted file mode 100644 index bceed6a9fcfa..000000000000 --- a/libs/application/templates/reference-template/src/fields/akrahreppur.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/libs/application/templates/reference-template/src/fields/akureyri.svg b/libs/application/templates/reference-template/src/fields/akureyri.svg deleted file mode 100644 index 1ad88a2af433..000000000000 --- a/libs/application/templates/reference-template/src/fields/akureyri.svg +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/libs/application/templates/reference-template/src/forms/ExampleForm.ts b/libs/application/templates/reference-template/src/forms/ExampleForm.ts index 149a7c4d9e17..73329cba02d7 100644 --- a/libs/application/templates/reference-template/src/forms/ExampleForm.ts +++ b/libs/application/templates/reference-template/src/forms/ExampleForm.ts @@ -15,52 +15,26 @@ import { buildHiddenInput, buildHiddenInputWithWatchedValue, buildTableRepeaterField, - buildAccordionField, - buildBankAccountField, } from '@island.is/application/core' import { - Application, Comparators, Form, - FormComponent, FormModes, FormValue, } from '@island.is/application/types' import { ApiActions } from '../shared' import { m } from '../lib/messages' -import { createElement } from 'react' import Logo from '../fields/akureyri.svg' export const ExampleForm: Form = buildForm({ id: 'ExampleFormDraft', title: 'Atvinnuleysisbætur', mode: FormModes.DRAFT, - logo: Logo as unknown as FormComponent, children: [ buildSection({ id: 'conditions', title: m.conditionsSection, - children: [ - buildMultiField({ - id: 'accordionAndBankAccount', - title: 'Accordion and bank account', - children: [ - buildAccordionField({ - id: 'accordion', - title: 'Accordion title', - accordionItems: [ - { itemTitle: 'Item title1', itemContent: 'Item content1' }, - { itemTitle: 'Item title2', itemContent: 'Item content2' }, - { itemTitle: 'Item title3', itemContent: 'Item content3' }, - ], - }), - buildBankAccountField({ - id: 'bankAccount', - title: 'Bank account title', - }), - ], - }), - ], + children: [], }), buildSection({ id: 'tableRepeaterWithPhone',