editor: fix crash on action sheet opening

This commit is contained in:
Abdullah Atta
2023-08-02 18:51:23 +05:00
parent 89c2d45a4b
commit 148c39158b

View File

@@ -29,7 +29,7 @@ import { Box, Button, Flex, Text, FlexProps } from "@theme-ui/components";
import { Icons } from "../../toolbar/icons";
import Modal from "react-modal";
import {
motion,
m,
PanInfo,
useMotionValue,
useTransform,
@@ -38,7 +38,7 @@ import {
import { useTheme } from "@emotion/react";
import { Theme } from "@notesnook/theme";
const AnimatedFlex = motion(
const AnimatedFlex = m(
Flex as React.FunctionComponent<Omit<FlexProps, "onDrag" | "onDragEnd">>
);
@@ -173,7 +173,7 @@ export function ActionSheetPresenter(
tabIndex={-1}
>
{blocking && (
<motion.div
<m.div
id="action-sheet-overlay"
style={{
height: "100%",