So when my app starts, it should navigate directly to /$product-id
,
where it will show the dashboard.
My problem is the navbar, sidebar doesn’t show up.
Project structure
- $product-id
- _layout.tsx
- index.tsx
_layout.tsx
<div>
<Sidebar />
<div>
<Navbar/>
<main>
<Outlet />
</main>
<ScrollRestoration />
<Scripts />
</div>
</div>
index.tsx
- this will the contain the dashboard component