editor: fix framer-motion deprecation warning

This commit is contained in:
Abdullah Atta
2024-09-25 10:55:55 +05:00
parent 7357422053
commit dc15bf75c6
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ import {
import { useTheme } from "@emotion/react";
import { EmotionThemeProvider, Theme } from "@notesnook/theme";
const AnimatedFlex = motion(Flex);
const AnimatedFlex = motion.create(Flex);
type ActionSheetHistoryItem = {
title?: string;

View File

@@ -43,7 +43,7 @@ import { useObserver } from "../../hooks/use-observer.js";
import { Attachment, ImageAlignmentOptions } from "../attachment/index.js";
import { DataURL } from "@notesnook/common";
export const AnimatedImage = motion(Image);
export const AnimatedImage = motion.create(Image);
export function ImageComponent(
props: ReactNodeViewProps<Partial<ImageAttributes>>