From 2a717bfd1dd2decc5c67b063f1658ce7e4ed7294 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 12 Sep 2024 12:58:55 +0200 Subject: [PATCH] commenting unused lines --- src/components/AnimatedPage.jsx | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/AnimatedPage.jsx b/src/components/AnimatedPage.jsx index 03fb649..a7642c3 100644 --- a/src/components/AnimatedPage.jsx +++ b/src/components/AnimatedPage.jsx @@ -5,24 +5,24 @@ import { motion } from "framer-motion"; export default function AnimatedPage({ children, className }) { const location = useLocation(); - const isNext = location.state && location.state.isNext; - const isPrev = location.state && location.state.isPrev; - const isGoingNext = location.state && location.state.isGoingNext; + // const isNext = location.state && location.state.isNext; + // const isPrev = location.state && location.state.isPrev; + // const isGoingNext = location.state && location.state.isGoingNext; - function getAnimationParameters() { - const animationParameters = { animate: { x: "0%", opacity: 1 } }; - if (isNext === true) { - animationParameters.initial = { x: "50%", opacity: 0 }; - } else { - animationParameters.initial = { x: "-50%", opacity: 0 }; - } - if (isGoingNext === true) { - animationParameters.exit = { x: "-50%", opacity: 0 }; - } else { - animationParameters.exit = { x: "50%", opacity: 0 }; - } - return animationParameters; - } + // function getAnimationParameters() { + // const animationParameters = { animate: { x: "0%", opacity: 1 } }; + // if (isNext === true) { + // animationParameters.initial = { x: "50%", opacity: 0 }; + // } else { + // animationParameters.initial = { x: "-50%", opacity: 0 }; + // } + // if (isGoingNext === true) { + // animationParameters.exit = { x: "-50%", opacity: 0 }; + // } else { + // animationParameters.exit = { x: "50%", opacity: 0 }; + // } + // return animationParameters; + // } // const animationParameters = getAnimationParameters(); const animationParameters = { initial: { x: "50%", opacity: 0 },