mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
editor: fix crash on action sheet opening
This commit is contained in:
@@ -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%",
|
||||
|
||||
Reference in New Issue
Block a user