From 4207922a26abbf11779b854eaf2e07a75c8ef121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guillois?= Date: Wed, 13 Nov 2024 12:15:05 +0100 Subject: [PATCH] feat: show DGFIP address on owner edition modals --- .../AddressSearchableSelect/AddressSearchableSelectNext.tsx | 1 - frontend/src/components/HousingList/HousingList.tsx | 2 +- .../components/OwnerAddressEdition/OwnerAddressEdition.tsx | 4 ++-- frontend/src/components/OwnerCard/OwnerCard.tsx | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/AddressSearchableSelect/AddressSearchableSelectNext.tsx b/frontend/src/components/AddressSearchableSelect/AddressSearchableSelectNext.tsx index 142041a10..02a44f86f 100644 --- a/frontend/src/components/AddressSearchableSelect/AddressSearchableSelectNext.tsx +++ b/frontend/src/components/AddressSearchableSelect/AddressSearchableSelectNext.tsx @@ -1,7 +1,6 @@ import { fr } from '@codegouvfr/react-dsfr'; import Input, { InputProps } from '@codegouvfr/react-dsfr/Input'; import Autocomplete from '@mui/material/Autocomplete'; -import Typography from '@mui/material/Typography'; import Grid from '@mui/material/Unstable_Grid2'; import { useDebounce, useList, usePreviousDistinct } from 'react-use'; import type { MarkOptional } from 'ts-essentials'; diff --git a/frontend/src/components/HousingList/HousingList.tsx b/frontend/src/components/HousingList/HousingList.tsx index 16d691e52..db541feb1 100644 --- a/frontend/src/components/HousingList/HousingList.tsx +++ b/frontend/src/components/HousingList/HousingList.tsx @@ -174,7 +174,7 @@ const HousingList = ({ const addressColumn = { name: 'address', headerRender: () => getSortButton('rawAddress', 'Adresse du logement'), - render: ({ id, rawAddress, owner }: Housing) => ( + render: ({ id, rawAddress }: Housing) => ( <> {rawAddress.map((line) => capitalize(line)).join('\n')} diff --git a/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx b/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx index b7b7c46bd..e3a44d653 100644 --- a/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx +++ b/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx @@ -52,10 +52,10 @@ function OwnerAddressEdition(props: Props) { className="fr-mt-3w" buttonProps={{ children: 'Ignorer', - onClick: () => {props.setWarningVisible(false)} + onClick: () => {props.setWarningVisible(false)}, }} > - L'adresse de la Base Adresse Nationale diffère de celle de la DGFIP. Veuillez vérifier attentivement ces informations ou ignorez l’alerte. + L’adresse de la Base Adresse Nationale diffère de celle de la DGFIP. Veuillez vérifier attentivement ces informations ou ignorez l’alerte. )} diff --git a/frontend/src/components/OwnerCard/OwnerCard.tsx b/frontend/src/components/OwnerCard/OwnerCard.tsx index 9025e9e4a..28716fe17 100644 --- a/frontend/src/components/OwnerCard/OwnerCard.tsx +++ b/frontend/src/components/OwnerCard/OwnerCard.tsx @@ -98,10 +98,10 @@ function OwnerCard(props: OwnerCardProps) { description={ <> - L'adresse Base Adresse Nationale ne correspond pas à celle de la DGFIP. + L’adresse Base Adresse Nationale ne correspond pas à celle de la DGFIP. - Nous vous recommandons de vérifier en cliquant sur "Modifier". + Nous vous recommandons de vérifier en cliquant sur "Modifier". }