update to listingspage

This commit is contained in:
Mann Patel
2025-04-14 12:09:06 -06:00
parent 521c3af00b
commit 635f73c1be
14 changed files with 400 additions and 756 deletions

View File

@@ -12,7 +12,6 @@ import Selling from "./pages/Selling";
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() {
@@ -712,27 +711,6 @@ function App() {
</ProtectedRoute>
}
/>
{/* Add new selling routes */}
<Route
path="/selling/create"
element={
<ProtectedRoute>
<div className="container mx-auto px-4 py-6">
<ItemForm />
</div>
</ProtectedRoute>
}
/>
<Route
path="/selling/edit/:id"
element={
<ProtectedRoute>
<div className="container mx-auto px-4 py-6">
<ItemForm />
</div>
</ProtectedRoute>
}
/>
<Route
path="/transactions"
element={