Skip to content

Commit

Permalink
chore(modal): remove *adresse* field exception
Browse files Browse the repository at this point in the history
  • Loading branch information
lutangar committed Nov 22, 2023
1 parent fffb60f commit b64314a
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,9 @@ export const Row = ({ name, value, deltaValue, url, aggregated, setExpandable }:
);
}

const asTitle = name.indexOf('adresse') !== -1;
if (asTitle) {
return (
<div {...containerProps}>
<ExternalLink href={url}>{asTitle ? <h3>{value}</h3> : value}</ExternalLink>
</div>
);
}

return (
<dl {...containerProps}>
{!asTitle && <dt className="row__name">{humanize(name)}</dt>}
<dt className="row__name">{humanize(name)}</dt>
<dd className="row__value">
<ExternalLink href={url}>{value}</ExternalLink>
</dd>
Expand Down

0 comments on commit b64314a

Please sign in to comment.