feat: add bond pages and portfolio navigation

This commit is contained in:
2026-09-10 22:30:47 +03:00
parent 561222e468
commit 232d7f9990
39 changed files with 4217 additions and 221 deletions
+24
View File
@@ -4,6 +4,14 @@ import { Navigate, Route, Routes } from "react-router";
import { LazyPage } from "./RouteFallback";
import { Protected, Public } from "./RouteGuards";
const BondPage = lazy(async () => {
const { BondPage } = await import("@/pages/bond");
return { default: BondPage };
});
const BondsPage = lazy(async () => {
const { BondsPage } = await import("@/pages/bonds");
return { default: BondsPage };
});
const StockPage = lazy(async () => {
const { StockPage } = await import("@/pages/stock");
return { default: StockPage };
@@ -85,6 +93,22 @@ const AppRoutes: FC = () => (
</Protected>
}
>
<Route
path="/bonds"
element={
<LazyPage variant="content">
<BondsPage />
</LazyPage>
}
/>
<Route
path="/bonds/:bondId"
element={
<LazyPage variant="content">
<BondPage />
</LazyPage>
}
/>
<Route
path="/stocks"
element={