feat: add analytics route and tab navigation for broker account
This commit is contained in:
parent
a1e68fb13a
commit
ef4bc48e50
@ -9,6 +9,7 @@ import { useSessionStore } from '@/entities/session'
|
||||
import { BondPage } from '@/pages/bond'
|
||||
import { BrokerAccountOverviewPage } from '@/pages/broker-account'
|
||||
import { BrokerAccountsPage } from '@/pages/broker-accounts'
|
||||
import { BrokerAnalyticsPage } from '@/pages/broker-analytics'
|
||||
import { BrokerEventsPage } from '@/pages/broker-events'
|
||||
import { BrokerOperationsPage } from '@/pages/broker-operations'
|
||||
import { BrokerPositionsPage } from '@/pages/broker-positions'
|
||||
@ -137,6 +138,12 @@ const brokerEventsRoute = createRoute({
|
||||
component: BrokerEventsPage,
|
||||
})
|
||||
|
||||
const brokerAnalyticsRoute = createRoute({
|
||||
getParentRoute: () => brokerAccountRoot,
|
||||
path: '/analytics',
|
||||
component: BrokerAnalyticsPage,
|
||||
})
|
||||
|
||||
const routeTree = rootRoute.addChildren([
|
||||
indexRoute,
|
||||
stockRoute,
|
||||
@ -154,6 +161,7 @@ const routeTree = rootRoute.addChildren([
|
||||
brokerBondsRoute,
|
||||
brokerOperationsRoute,
|
||||
brokerEventsRoute,
|
||||
brokerAnalyticsRoute,
|
||||
]),
|
||||
])
|
||||
|
||||
|
||||
@ -24,6 +24,7 @@ const links = [
|
||||
{ to: '/bonds', label: 'Облигации' },
|
||||
{ to: '/operations', label: 'Операции' },
|
||||
{ to: '/events', label: 'События' },
|
||||
{ to: '/analytics', label: 'Аналитика' },
|
||||
]
|
||||
|
||||
export interface BrokerAccountContextValue {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user