From 04195601eb78156825a92a15e24dbd9221ded98d Mon Sep 17 00:00:00 2001 From: albina Date: Tue, 3 Sep 2024 10:49:03 +0000 Subject: [PATCH] fix(signature-collection): cleanup constituencies --- .../screens/Parliamentary/OwnerView/index.tsx | 49 ------------------- .../OwnerView/modals/LookupPerson/index.tsx | 25 +--------- 2 files changed, 2 insertions(+), 72 deletions(-) diff --git a/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx b/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx index 429ff23d178c..b1f00d7303e9 100644 --- a/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx +++ b/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx @@ -66,54 +66,6 @@ const OwnerView = () => { ))} - {/* Ábyrgðaraðilar - hlutverk tekið út eins og staðan er */} - {/* - - - {formatMessage(m.managers) + ' '} - - - - - - - - {formatMessage(m.personName)} - {formatMessage(m.personNationalId)} - {formatMessage(m.constituency)} - - - - - - {'Nafni Nafnason'} - {'010130-3019'} - - {formatMessage(m.allConstituencies)} - - - - - - - - - - */} - {/* Umsjónaraðilar */} { diff --git a/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx b/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx index 686c6167e0ff..d7a96d4285b0 100644 --- a/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx +++ b/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx @@ -1,31 +1,18 @@ import { useEffect, useState } from 'react' -import { - Box, - Stack, - Button, - Text, - Input, - Checkbox, -} from '@island.is/island-ui/core' +import { Box, Stack, Button, Text, Input } from '@island.is/island-ui/core' import { Modal } from '@island.is/service-portal/core' import { useLocale } from '@island.is/localization' import { useIdentityQuery } from '@island.is/service-portal/graphql' import { InputController } from '@island.is/shared/form-fields' import { useForm } from 'react-hook-form' import { m } from '../../../../../lib/messages' -import { constituencies } from '../../../../../lib/constants' interface LookupPersonProps { collectionId: string title: string - withConstituencies?: boolean } -const LookupPerson = ({ - collectionId, - title, - withConstituencies, -}: LookupPersonProps) => { +const LookupPerson = ({ collectionId, title }: LookupPersonProps) => { const { formatMessage } = useLocale() const { control } = useForm() @@ -105,14 +92,6 @@ const LookupPerson = ({ value={name} readOnly /> - {withConstituencies && - constituencies.map((constituency) => ( - - ))}