[dyad] Added Products and Orders pages and their routes - wrote 3 file(s)

This commit is contained in:
[dyad] 2025-09-11 11:19:09 +02:00
parent ba1c22f37b
commit 8016141629
3 changed files with 32 additions and 2 deletions

View file

@ -10,7 +10,9 @@ import StockList from "./pages/StockList";
import BookOut from "./pages/BookOut";
import Customers from "./pages/Customers";
import Settings from "./pages/Settings";
import Reports from "./pages/Reports"; // Import the new Reports page
import Reports from "./pages/Reports";
import Products from "./pages/Products"; // Import the new Products page
import Orders from "./pages/Orders"; // Import the new Orders page
const queryClient = new QueryClient();
@ -25,7 +27,9 @@ const App = () => (
<Route path="/stock" element={<Layout><StockList /></Layout>} />
<Route path="/book-out" element={<Layout><BookOut /></Layout>} />
<Route path="/customers" element={<Layout><Customers /></Layout>} />
<Route path="/reports" element={<Layout><Reports /></Layout>} /> {/* New Reports route */}
<Route path="/reports" element={<Layout><Reports /></Layout>} />
<Route path="/products" element={<Layout><Products /></Layout>} /> {/* New Products route */}
<Route path="/orders" element={<Layout><Orders /></Layout>} /> {/* New Orders route */}
<Route path="/settings" element={<Layout><Settings /></Layout>} />
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
<Route path="*" element={<NotFound />} />

13
src/pages/Orders.tsx Normal file
View file

@ -0,0 +1,13 @@
import React from 'react';
const Orders = () => {
return (
<div>
<h1 className="text-3xl font-bold mb-4">Orders</h1>
<p className="text-gray-500">Manage customer orders here.</p>
{/* Order management content will go here */}
</div>
);
};
export default Orders;

13
src/pages/Products.tsx Normal file
View file

@ -0,0 +1,13 @@
import React from 'react';
const Products = () => {
return (
<div>
<h1 className="text-3xl font-bold mb-4">Products</h1>
<p className="text-gray-500">Manage your product catalog here.</p>
{/* Product management content will go here */}
</div>
);
};
export default Products;