616058b603
- Added a new profile route under the hidden layout. - Introduced a Sidebar component for navigation between inventory, add product, and profile pages. - Created InventoryPage to display a list of products with sorting and pagination. - Implemented ViewProduct page to show details of a selected product. - Integrated API calls for fetching products and product details. - Updated route tree to include new routes and components.
18 lines
414 B
TypeScript
18 lines
414 B
TypeScript
import { Outlet, createFileRoute } from "@tanstack/react-router";
|
|
import { Sidebar } from "../../components/Sidebar";
|
|
|
|
export const Route = createFileRoute("/app/_hiddenLayout")({
|
|
component: AppLayout,
|
|
});
|
|
|
|
function AppLayout() {
|
|
return (
|
|
<div className="flex min-h-screen w-full bg-[#f7f9fc]">
|
|
<Sidebar />
|
|
<main className="flex-1 px-8 py-6">
|
|
<Outlet />
|
|
</main>
|
|
</div>
|
|
);
|
|
}
|