EmojiPickerDropdown: put RenderAfter inside of Suspense (instead of the other way around)

This commit is contained in:
Alex Gleason 2024-11-13 16:28:22 -06:00
parent 15483208ee
commit e0c4ef5ea7
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 4 deletions

View File

@ -215,8 +215,8 @@ const EmojiPickerDropdown: React.FC<IEmojiPickerDropdown> = ({
return (
visible ? (
<RenderAfter update={update}>
<Suspense>
<Suspense>
<RenderAfter update={update}>
<EmojiPicker
custom={withCustom ? [{ emojis: buildCustomEmojis(customEmojis) }] : undefined}
title={title}
@ -232,8 +232,8 @@ const EmojiPickerDropdown: React.FC<IEmojiPickerDropdown> = ({
skinTonePosition='search'
previewPosition='none'
/>
</Suspense>
</RenderAfter>
</RenderAfter>
</Suspense>
) : null
);
};