Skip to content

Commit

Permalink
Merge branch 'malj/2358' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Jun 18, 2024
2 parents cde2d7b + b454f50 commit bd53b56
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions web/pageComponents/topicPages/Accordion/AccordionBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ const AccordionBlock = ({ data, anchor, className }: AccordionBlockProps) => {
<Img image={image} maxWidth={200} aspectRatio={Ratios.ONE_TO_ONE} />
</div>
)}
{Array.isArray(title) ? (
<Heading value={title} as="h2" variant="xl" className="mb-2" />
) : (
<Typography as="h2" variant="xl" className="mb-2">
{title}
</Typography>
)}
{title &&
(Array.isArray(title) ? (
<Heading value={title} as="h2" variant="xl" className="mb-2" />
) : (
<Typography as="h2" variant="xl" className="mb-2">
{title}
</Typography>
))}
{ingress && <IngressText value={ingress} />}
{accordion && accordion.length > 0 && (
<Accordion data={accordion} id={id} hasTitle={!!title} queryParamName={id} />
Expand Down

0 comments on commit bd53b56

Please sign in to comment.