search bar now working

This commit is contained in:
Mann Patel
2025-03-29 17:28:09 -06:00
parent 91ec43627a
commit 2e77ef49f4
12 changed files with 687 additions and 71 deletions

View File

@@ -13,6 +13,7 @@ import Transactions from "./pages/Transactions";
import Favorites from "./pages/Favorites";
import ProductDetail from "./pages/ProductDetail";
import ItemForm from "./pages/MyListings";
import SearchPage from "./pages/SearchPage"; // Make sure to import the SearchPage
function App() {
// Authentication state - initialize from localStorage if available
@@ -634,6 +635,16 @@ function App() {
</ProtectedRoute>
}
/>
<Route
path="/search"
element={
<ProtectedRoute>
<div className="container mx-auto px-4 py-6">
<SearchPage />
</div>
</ProtectedRoute>
}
/>
<Route
path="/settings"
element={