Add routing foundation to compliance-portal

Wire up react-router with a root layout route and an index home page,
following the single-arborescence conventions: pages live under pages/,
routes are built from AppRoute via routeFromAppRoute, and route bundles
load lazily behind a Suspense fallback.

Add the @probo/routes and @probo/react-lazy workspace dependencies that
the route setup relies on.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-22 19:16:17 +02:00
parent eabf46c5cb
commit 023fb70a58
7 changed files with 109 additions and 5 deletions

View File

@@ -12,10 +12,10 @@
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
import { RouterProvider } from "react-router";
import { router } from "#/routes";
export function App() {
return (
<main className="flex min-h-screen items-center justify-center bg-sand-1">
<h1 className="text-6 font-bold text-sand-12">Compliance Portal</h1>
</main>
);
return <RouterProvider router={router} />;
}