solve problem tree rerender
This commit is contained in:
@@ -17,13 +17,12 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
// ⚠️ اتصلح: الـ Navbar والـ footer كانوا برة <html>/<body> وده HTML غير صالح
|
||||
|
||||
<html lang="ar" dir="rtl">
|
||||
<body className="app-shell" suppressHydrationWarning>
|
||||
{/* CHANGE: mounted globally so every route (not just the dashboard
|
||||
form pages) gets protected from extension-injected attributes */}
|
||||
// CHANGE: added — fixes hydration mismatch caused by browser extensions
|
||||
<ExtensionAttributeCleanup />
|
||||
{/* الناف بار بيظهر بس لو مفيش يوزر مسجل دخول */}
|
||||
// CHANGE: navbar is conditional based on route, so we can hide it on login/register pages
|
||||
<ConditionalNavbar />
|
||||
{children}
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user