mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
Move suspense above popover dropdown
This commit is contained in:
@@ -68,8 +68,8 @@ function EmojiPicker({
|
|||||||
{icon}
|
{icon}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Popover.Target>
|
</Popover.Target>
|
||||||
<Popover.Dropdown bg="000" style={{ border: "none" }} ref={setDropdown}>
|
<Suspense fallback={null}>
|
||||||
<Suspense fallback={null}>
|
<Popover.Dropdown bg="000" style={{ border: "none" }} ref={setDropdown}>
|
||||||
<Picker
|
<Picker
|
||||||
data={async () => (await import("@emoji-mart/data")).default}
|
data={async () => (await import("@emoji-mart/data")).default}
|
||||||
onEmojiSelect={handleEmojiSelect}
|
onEmojiSelect={handleEmojiSelect}
|
||||||
@@ -77,22 +77,22 @@ function EmojiPicker({
|
|||||||
skinTonePosition="search"
|
skinTonePosition="search"
|
||||||
theme={colorScheme}
|
theme={colorScheme}
|
||||||
/>
|
/>
|
||||||
</Suspense>
|
<Button
|
||||||
<Button
|
variant="default"
|
||||||
variant="default"
|
c="gray"
|
||||||
c="gray"
|
size="xs"
|
||||||
size="xs"
|
style={{
|
||||||
style={{
|
position: "absolute",
|
||||||
position: "absolute",
|
zIndex: 2,
|
||||||
zIndex: 2,
|
bottom: "1rem",
|
||||||
bottom: "1rem",
|
right: "1rem",
|
||||||
right: "1rem",
|
}}
|
||||||
}}
|
onClick={handleRemoveEmoji}
|
||||||
onClick={handleRemoveEmoji}
|
>
|
||||||
>
|
{t("Remove")}
|
||||||
{t("Remove")}
|
</Button>
|
||||||
</Button>
|
</Popover.Dropdown>
|
||||||
</Popover.Dropdown>
|
</Suspense>
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user