Wires up react-router-dom so the sidebar nav actually navigates between pages, with route-aware active highlighting and dynamic page titles. Extracts Glance content into its own page component and adds a new Infrastructure page matching the mockup: status cards, resource distribution/cost breakdown donuts, infra map, top resources by utilization, resource trend chart, recent activity, and footer stats.
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import { BrowserRouter } from 'react-router-dom'
|
|
import './index.css'
|
|
import App from './App.tsx'
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<BrowserRouter>
|
|
<App />
|
|
</BrowserRouter>
|
|
</StrictMode>,
|
|
)
|