Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: load full framer-motion

Abdullah Attac76118d9d6ec
diff --git a/apps/web/src/app.tsx b/apps/web/src/app.tsx
index 8c2bd6423..341e3506d 100644
--- a/apps/web/src/app.tsx
+++ b/apps/web/src/app.tsx
@@ -25,7 +25,6 @@ import {
} from "./components/theme-provider";
import useMobile from "./hooks/use-mobile";
import useTablet from "./hooks/use-tablet";
-import { LazyMotion, domAnimation } from "framer-motion";
import useDatabase from "./hooks/use-database";
import { Allotment, AllotmentHandle, LayoutPriority } from "allotment";
import { useStore } from "./stores/app-store";
@@ -54,41 +53,39 @@ function App() {
const [isAppLoaded] = useDatabase();
return (
- <LazyMotion features={domAnimation} strict>
- <BaseThemeProvider sx={{ height: "100%" }} addGlobalStyles>
- {isAppLoaded && (
- <Suspense fallback={<div style={{ display: "none" }} />}>
- <div id="menu-wrapper">
- <GlobalMenuWrapper />
- </div>
- <AppEffects setShow={setShow} />
- {isMobile && (
- <MobileAppEffects
- sliderId="slider"
- overlayId="overlay"
- setShow={setShow}
- />
- )}
- </Suspense>
- )}
- <Flex
- id="app"
- bg="background"
- sx={{ overflow: "hidden", flexDirection: "column", height: "100%" }}
- >
- {isMobile ? (
- <MobileAppContents isAppLoaded={isAppLoaded} />
- ) : (
- <DesktopAppContents
- isAppLoaded={isAppLoaded}
+ <BaseThemeProvider sx={{ height: "100%" }} addGlobalStyles>
+ {isAppLoaded && (
+ <Suspense fallback={<div style={{ display: "none" }} />}>
+ <div id="menu-wrapper">
+ <GlobalMenuWrapper />
+ </div>
+ <AppEffects setShow={setShow} />
+ {isMobile && (
+ <MobileAppEffects
+ sliderId="slider"
+ overlayId="overlay"
setShow={setShow}
- show={show}
/>
)}
- <Toaster containerClassName="toasts-container" />
- </Flex>
- </BaseThemeProvider>
- </LazyMotion>
+ </Suspense>
+ )}
+ <Flex
+ id="app"
+ bg="background"
+ sx={{ overflow: "hidden", flexDirection: "column", height: "100%" }}
+ >
+ {isMobile ? (
+ <MobileAppContents isAppLoaded={isAppLoaded} />
+ ) : (
+ <DesktopAppContents
+ isAppLoaded={isAppLoaded}
+ setShow={setShow}
+ show={show}
+ />
+ )}
+ <Toaster containerClassName="toasts-container" />
+ </Flex>
+ </BaseThemeProvider>
);
}
diff --git a/apps/web/src/components/animated/index.js b/apps/web/src/components/animated/index.js
index 20c30bc3c..4a5df788d 100644
--- a/apps/web/src/components/animated/index.js
+++ b/apps/web/src/components/animated/index.js
@@ -17,12 +17,12 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import { m } from "framer-motion";
+import { motion } from "framer-motion";
import { Flex, Box, Image, Text } from "@theme-ui/components";
import { Input } from "@theme-ui/components";
-export const AnimatedFlex = m(Flex);
-export const AnimatedBox = m(Box);
-export const AnimatedImage = m(Image);
-export const AnimatedText = m(Text);
-export const AnimatedInput = m(Input);
+export const AnimatedFlex = motion(Flex);
+export const AnimatedBox = motion(Box);
+export const AnimatedImage = motion(Image);
+export const AnimatedText = motion(Text);
+export const AnimatedInput = motion(Input);