feat(Menu,Lang,Image): fix bug menu and change lang and set images

This commit is contained in:
2026-05-22 13:35:28 +03:30
parent 7d30e4f180
commit 4d995a61af
11 changed files with 176 additions and 92 deletions

View File

@@ -48,7 +48,9 @@ export const metadata = {
}
export const dynamic = 'force-dynamic';
export default function RootLayout({ params: { lang }, children }) {
export default async function RootLayout({ params, children }) {
const { lang } = await params
return (
<html lang={lang} dir={lang === "fa" ? "rtl" : "ltr"} className={dana.className + " scroll-smooth"}>
<body className="flex flex-col relative h-full w-full max-w-screen">