Add route for categories in App.tsx

This commit is contained in:
Dosseh91
2025-12-17 22:08:25 +01:00
committed by GitHub
parent 593ebf9595
commit 86b0cc87ec

View File

@@ -57,10 +57,10 @@ function App() {
{/* Public routes */}
<Route path="/" element={<MainLayout><Home /></MainLayout>} />
<Route path="/listings" element={<MainLayout><Listings /></MainLayout>} />
<Route path="/categories" element={<MainLayout><Categories /></MainLayout>} />
<Route path="/listings/:id" element={<MainLayout><ListingDetail /></MainLayout>} />
<Route path="/login" element={<Login />} />
<Route path="/register" element={<Register />} />
{/* ADD THIS LINE - The fix for your button */}
<Route path="/register" element={<Register />} />