From 148c39158b99d43cc7e0873949a07c53605c25ae Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 2 Aug 2023 18:51:23 +0500 Subject: [PATCH] editor: fix crash on action sheet opening --- packages/editor/src/components/action-sheet/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/editor/src/components/action-sheet/index.tsx b/packages/editor/src/components/action-sheet/index.tsx index c411eb9dd..d76405530 100644 --- a/packages/editor/src/components/action-sheet/index.tsx +++ b/packages/editor/src/components/action-sheet/index.tsx @@ -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> ); @@ -173,7 +173,7 @@ export function ActionSheetPresenter( tabIndex={-1} > {blocking && ( -