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">
|
||||
|
||||
@@ -6,7 +6,8 @@ import Production from '@/components/Production'
|
||||
import About from '@/components/About'
|
||||
import BlogPosts from '@/components/BlogPosts'
|
||||
|
||||
export default async function Home({ params: { lang } }) {
|
||||
export default async function Home({ params }) {
|
||||
const { lang } = await params
|
||||
|
||||
return (
|
||||
<main className="flex flex-col w-full h-full bg-bg-1 scroll-x-hidden" >
|
||||
|
||||
Reference in New Issue
Block a user