From 65be79407260ab8775c369e2db81f49da1624991 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 16 May 2023 14:27:06 +0700 Subject: fixing animation layout --- src/core/components/layouts/AnimationLayout.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx index 7acf21dc..eeaa8751 100644 --- a/src/core/components/layouts/AnimationLayout.jsx +++ b/src/core/components/layouts/AnimationLayout.jsx @@ -1,9 +1,6 @@ -import useDevice from '@/core/hooks/useDevice' import { motion } from 'framer-motion' const AnimationLayout = ({ children, ...props }) => { - const { isMobile } = useDevice() - const initialConfig = { opacity: 0, x: 0, @@ -19,7 +16,7 @@ const AnimationLayout = ({ children, ...props }) => { const exitConfig = { opacity: 0, - x: isMobile ? 30 : 0, + x: 0, y: 0, transition: { duration: 0.2, ease: 'easeInOut' } } -- cgit v1.2.3