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" id="block-yui_3_17_2_1_1663343055963_122180"
> >
<div className="sqs-block-content"> <div className="sqs-block-content">
<p className="" style={{ whiteSpace: "pre-wrap" }}> {resistant.lien_declaration && (
<a href={resistant.lien_declaration} target="_blank"> <p className="" style={{ whiteSpace: "pre-wrap" }}>
Notre déclaration de désobéissance civile <a href={resistant.lien_declaration} target="_blank">
</a> Notre déclaration de désobéissance civile
, en {resistant.date_declaration} </a>
</p> , en {resistant.date_declaration}
</p>
)}
</div> </div>
</div> </div>
</div> </div>