diff --git a/src/app/[name]/(Dialogs)/layout.tsx b/src/app/[name]/(Dialogs)/layout.tsx index 662ff4c..d194a54 100644 --- a/src/app/[name]/(Dialogs)/layout.tsx +++ b/src/app/[name]/(Dialogs)/layout.tsx @@ -1,12 +1,15 @@ 'use client'; +import ClientSideWrapper from '@/components/wrapper/ClientSideWrapper'; import React from 'react' function DialogsLayout({ children }: { children: React.ReactNode }) { return ( -
- {children} -
+ +
+ {children} +
+
) } diff --git a/src/app/[name]/(Main)/layout.tsx b/src/app/[name]/(Main)/layout.tsx index bd8fd24..2b4a10a 100644 --- a/src/app/[name]/(Main)/layout.tsx +++ b/src/app/[name]/(Main)/layout.tsx @@ -7,18 +7,15 @@ export const metadata = { export default function MenuLayout({ children, - report }: Readonly<{ children: React.ReactNode; - report: React.ReactNode, }>) { return ( - - + + {children} - {report} - - + + ); } diff --git a/src/app/[name]/(Profile)/layout.tsx b/src/app/[name]/(Profile)/layout.tsx index f122f93..6d06c7a 100644 --- a/src/app/[name]/(Profile)/layout.tsx +++ b/src/app/[name]/(Profile)/layout.tsx @@ -1,12 +1,15 @@ 'use client'; +import ClientSideWrapper from '@/components/wrapper/ClientSideWrapper'; import React from 'react' function DialogsLayout({ children }: { children: React.ReactNode }) { return ( -
- {children} -
+ +
+ {children} +
+
) } diff --git a/src/components/wrapper/ClientSideWrapper.tsx b/src/components/wrapper/ClientSideWrapper.tsx index f6e1e14..271b384 100644 --- a/src/components/wrapper/ClientSideWrapper.tsx +++ b/src/components/wrapper/ClientSideWrapper.tsx @@ -1,15 +1,30 @@ 'use client' +import { AnimatePresence, motion } from 'framer-motion' +import { usePathname } from 'next/navigation' import React from 'react' -type Props = { } & React.AllHTMLAttributes +type Props = { + children: React.ReactNode +} function ClientSideWrapper({ children }: Props) { + const pathname = usePathname() + return ( - <> + + {children} - + + ) } -export default ClientSideWrapper \ No newline at end of file +export default ClientSideWrapper