language bug fixing 3
This commit is contained in:
@@ -10,9 +10,9 @@ export default async function LangLayout({
|
||||
params,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ lang: "uz" | "ru" }>; // ✅ Promise shaklda
|
||||
params: "uz"|"ru"; // ✅ Promise shaklda
|
||||
}) {
|
||||
const { lang } = await params; // ✅ await bilan destructuring
|
||||
const lang = await params; // ✅ await bilan destructuring
|
||||
const direction = dir(lang) || "ltr";
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user