feat(Menu,Lang,Image): fix bug menu and change lang and set images
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user