Skip to content

Commit 0859ee8

Browse files
committed
style(figure): code clean-up
1 parent 9c53ff6 commit 0859ee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Figure/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export interface FigureProps {
1111
export default function Figure({ img, caption, externalLink }: FigureProps) {
1212

1313
const figcaption = externalLink
14-
? <figcaption>{caption} (<a href={ externalLink } target="_blank" rel="noopener noreferrer">source</a>)</figcaption>
15-
: <figcaption>{caption}</figcaption>;
14+
? <figcaption><em>{caption} (<a href={ externalLink } target="_blank" rel="noopener noreferrer">source</a>)</em></figcaption>
15+
: <figcaption><em>{caption}</em></figcaption>;
1616

1717
return (
1818
<figure>
1919
<Image img={img} alt={caption} />
20-
<em>{figcaption}</em>
20+
{figcaption}
2121
</figure>
2222
)
2323
}

0 commit comments

Comments
 (0)