feat: do not show declaration link on profile page if none given

proto-module-actu-react
Jalil Arfaoui 2023-08-29 18:16:21 +02:00
parent 7a77d9107f
commit 9e4c5cdc77
1 changed files with 8 additions and 6 deletions

View File

@ -107,12 +107,14 @@ export const PageResistant = () => {
id="block-yui_3_17_2_1_1663343055963_122180"
>
<div className="sqs-block-content">
<p className="" style={{ whiteSpace: "pre-wrap" }}>
<a href={resistant.lien_declaration} target="_blank">
Notre déclaration de désobéissance civile
</a>
, en {resistant.date_declaration}
</p>
{resistant.lien_declaration && (
<p className="" style={{ whiteSpace: "pre-wrap" }}>
<a href={resistant.lien_declaration} target="_blank">
Notre déclaration de désobéissance civile
</a>
, en {resistant.date_declaration}
</p>
)}
</div>
</div>
</div>