diff --git a/web/src/App.tsx b/web/src/App.tsx index 1304d60a..34187dbb 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -378,6 +378,23 @@ function App() { } // Data page - publicly accessible with embedded dashboard if (route === '/data') { + const dataPageNavigate = (page: Page) => { + const pathMap: Record = { + 'data': '/data', + 'competition': '/competition', + 'strategy-market': '/strategy-market', + 'traders': '/traders', + 'trader': '/dashboard', + 'backtest': '/backtest', + 'strategy': '/strategy', + 'debate': '/debate', + 'faq': '/faq', + } + const path = pathMap[page] + if (path) { + window.location.href = path + } + } return (