mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
editor: fix framer-motion deprecation warning
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>>
|
||||
|
||||
Reference in New Issue
Block a user