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:
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user