diff --git a/components/MotionWrapper/MotionWrapper.tsx b/components/MotionWrapper/MotionWrapper.tsx new file mode 100644 index 0000000..2b4e1d2 --- /dev/null +++ b/components/MotionWrapper/MotionWrapper.tsx @@ -0,0 +1,12 @@ +'use client'; + +import { motion, MotionProps } from 'framer-motion'; +import { ReactNode } from 'react'; + +interface MotionWrapperProps extends MotionProps { + children: ReactNode; +} + +export function MotionWrapper({ children, ...props }: MotionWrapperProps) { + return {children}; +} \ No newline at end of file diff --git a/components/PageBlock/PageItem.tsx b/components/PageBlock/PageItem.tsx index 77741ba..6d2449a 100644 --- a/components/PageBlock/PageItem.tsx +++ b/components/PageBlock/PageItem.tsx @@ -1,5 +1,6 @@ import { CSSProperties, FC, ReactNode } from "react"; import classNames from "classnames"; +import { MotionWrapper } from "@/components/MotionWrapper/MotionWrapper"; import styles from "./PageItem.module.css"; type Props = { @@ -19,7 +20,7 @@ const PageItem: FC = ({ noBorderRadius = false, fullScreenMobile = false, }) => { - return ( + const pageItemBody = (
= ({ {children}
); + + return ( + + {pageItemBody} + + ); }; export default PageItem; diff --git a/components/PhoneInput/components/CountrySelect.tsx b/components/PhoneInput/components/CountrySelect.tsx index aa0892f..137a544 100644 --- a/components/PhoneInput/components/CountrySelect.tsx +++ b/components/PhoneInput/components/CountrySelect.tsx @@ -87,6 +87,7 @@ const CountrySelect = ({