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