Skip to content

Commit

Permalink
fix(localisations): update display
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Nov 22, 2023
1 parent 6f24a57 commit b6749ba
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/blocs/localisations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ export default function LocalisationsComponent() {
<p className="fr-card__detail fr-text--sm fr-mb-0">
<Icon name="ri-map-pin-fill" size="1x" />
{localisation.current ? 'Dernière adresse connue' : 'Adresse historique'}
{editMode && <Button color="text" size="md" onClick={() => handleModalToggle(localisation)} tertiary borderless rounded icon="ri-edit-line" className="edit-button" />}
</p>
<div className="fr-card__end fr-mt-0 fr-pt-0">
<p className="fr-card__detail">
{formatDescriptionDates(localisation.startDate || null, localisation.endDate || null)}
</p>
</div>
{editMode && <Button color="text" size="md" onClick={() => handleModalToggle(localisation)} tertiary borderless rounded icon="ri-edit-line" className="edit-button" />}
</div>
</div>
</div>
Expand Down Expand Up @@ -166,17 +166,15 @@ export default function LocalisationsComponent() {
/>
)}
</Col>
<Col n="3">
<Col>
{currentLocalisation?.country
? renderAddress(currentLocalisation) : null}
</Col>
{data && (
<Row className="fr-mt-3w">
<Col>
<BlocTitle as="h3" look="h6">Catégories géographiques de l'adresse actuelle</BlocTitle>
<GeographicalTags data={currentLocalisation?.geoCategories} />
</Col>
</Row>
<>
<BlocTitle as="h3" look="h6">Catégories géographiques de l'adresse actuelle</BlocTitle>
<GeographicalTags data={currentLocalisation?.geoCategories} />
</>
)}
</Row>
</Tab>
Expand Down

0 comments on commit b6749ba

Please sign in to comment.