Skip to content

Commit

Permalink
refactor(r&w): remove unnecessary div
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed Mar 2, 2024
1 parent 50b170f commit 2b43452
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions site/gdocs/components/ResearchAndWriting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,33 +62,31 @@ function ResearchAndWritingLink(
target="_blank"
rel="noopener noreferrer"
>
<div>
{filename && !shouldHideThumbnail ? (
<figure>
<Image
filename={filename}
shouldLightbox={false}
containerType={isSmall ? "thumbnail" : "default"}
/>
</figure>
) : null}
{heading}
{subtitle && !shouldHideSubtitle ? (
<p
className={cx(
"research-and-writing-link__description",
isSmall ? "body-3-medium" : "body-2-regular"
)}
>
{subtitle}
</p>
) : null}
{authors ? (
<p className="research-and-writing-link__authors body-3-medium-italic">
{formatAuthors({ authors })}
</p>
) : null}
</div>
{filename && !shouldHideThumbnail ? (
<figure>
<Image
filename={filename}
shouldLightbox={false}
containerType={isSmall ? "thumbnail" : "default"}
/>
</figure>
) : null}
{heading}
{subtitle && !shouldHideSubtitle ? (
<p
className={cx(
"research-and-writing-link__description",
isSmall ? "body-3-medium" : "body-2-regular"
)}
>
{subtitle}
</p>
) : null}
{authors ? (
<p className="research-and-writing-link__authors body-3-medium-italic">
{formatAuthors({ authors })}
</p>
) : null}
</a>
)
}
Expand Down

0 comments on commit 2b43452

Please sign in to comment.