Skip to content

Commit 2800866

Browse files
conico974Nicolas Dorseuil
andauthored
Make Emoji component synchronous (#3417)
Co-authored-by: Nicolas Dorseuil <[email protected]>
1 parent f3affc3 commit 2800866

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gitbook/src/components/DocumentView/Emoji.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Emoji as EmojiPrimitive } from '@/components/primitives';
44

55
import type { InlineProps } from './Inline';
66

7-
export async function Emoji(props: InlineProps<DocumentInlineEmoji>) {
7+
export function Emoji(props: InlineProps<DocumentInlineEmoji>) {
88
const { inline } = props;
99

1010
return <EmojiPrimitive code={inline.data.code} />;

packages/gitbook/src/components/primitives/Emoji/Emoji.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { type ClassValue, tcls } from '@/lib/tailwind';
55
* Render an emoji by its codepoint.
66
* It renders the UTF-8 character and use Emoji font defined in Tailwind CSS.
77
*/
8-
export async function Emoji(props: { code: string; style?: ClassValue }) {
8+
export function Emoji(props: { code: string; style?: ClassValue }) {
99
const { code, style } = props;
1010

1111
const fallback = getEmojiForCode(code);

0 commit comments

Comments
 (0)