Skip to content

Commit 2eebcb6

Browse files
committed
fix display emoji
1 parent 0680377 commit 2eebcb6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/Card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ const Card: React.FC<IProps> = ({
2828
className={className}
2929
>
3030
<div>
31-
{emoji && (
32-
<Emoji fontSize="5xl" text={emoji} mb={4} display="inline-block" />
33-
)}
31+
{emoji && <Emoji fontSize="5xl" text={emoji} mb={4} />}
3432
{title && (
3533
<Heading as="h3" mt={0} fontSize="2xl" lineHeight={1.4}>
3634
{title}

src/components/Emoji.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Emoji = (props: IProps) => {
2424
// avoid differences in SSR
2525
options={{ protocol: IS_DEV ? "http" : "https" }}
2626
svg
27-
d="inline-block"
27+
display="inline-block"
2828
{...props}
2929
/>
3030
)

0 commit comments

Comments
 (0)