feat: do not show declaration link on profile page if none given
parent
7a77d9107f
commit
9e4c5cdc77
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue