refactor: Move Navbar and Footer to global RootLayout, deduplicating page imports

This commit is contained in:
AyrisAI
2026-07-12 20:54:22 +03:00
parent f696d359b0
commit 2f2dafcfb9
11 changed files with 10 additions and 45 deletions
-5
View File
@@ -1,7 +1,5 @@
import { getTranslations, setRequestLocale } from 'next-intl/server'
import { mockDb } from '@/lib/mockDb'
import Navbar from '@/components/Navbar'
import Footer from '@/components/Footer'
import BusinessForm from './BusinessForm'
interface AddBusinessPageProps {
@@ -36,7 +34,6 @@ export default async function AddBusinessPage({ params }: AddBusinessPageProps)
return (
<div className="flex-1 flex flex-col min-h-screen bg-stone text-ink">
<Navbar />
<main className="max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-12 flex-1 w-full">
<div className="bg-paper p-8 rounded-3xl border border-pine/8 shadow-sm">
@@ -72,8 +69,6 @@ export default async function AddBusinessPage({ params }: AddBusinessPageProps)
</div>
</main>
<Footer />
</div>
)
}