Skip to content

Commit

Permalink
feat: show DGFIP address on owner edition modals
Browse files Browse the repository at this point in the history
  • Loading branch information
loicguillois committed Nov 13, 2024
1 parent 93ca6da commit 4207922
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/HousingList/HousingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => (
<>
<AppLink className="capitalize" isSimple to={`/logements/${id}`}>
{rawAddress.map((line) => capitalize(line)).join('\n')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Ladresse de la Base Adresse Nationale diffère de celle de la DGFIP. Veuillez vérifier attentivement ces informations ou ignorez l’alerte.
</CallOut>
)}
</>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/OwnerCard/OwnerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ function OwnerCard(props: OwnerCardProps) {
description={
<>
<Typography>
L'adresse Base Adresse Nationale ne correspond pas à celle de la DGFIP.
Ladresse Base Adresse Nationale ne correspond pas à celle de la DGFIP.
</Typography>
<Typography>
Nous vous recommandons de vérifier en cliquant sur "Modifier".
Nous vous recommandons de vérifier en cliquant sur &quot;Modifier&quot;.
</Typography>
</>
}
Expand Down

0 comments on commit 4207922

Please sign in to comment.