Skip to content

Commit

Permalink
Conditionally render the caption in the FigmaImages component
Browse files Browse the repository at this point in the history
  • Loading branch information
danielguillan committed Oct 3, 2024
1 parent d0b752b commit 6e1ae03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/figma-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const FigmaImage: React.FC<FigmaImageProps> = ({src, caption, ...props})
<StyledOcticon icon={PencilIcon} sx={{mr: 2}} size="small" />
Edit in Figma
</StyledLinkButton>
<StyledCaption>{caption}</StyledCaption>
{caption && <StyledCaption>{caption}</StyledCaption>}
</StyledFigure>
)
}

0 comments on commit 6e1ae03

Please sign in to comment.