steelforesight/src/main.tsx

33 lines
1.3 KiB
TypeScript

import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import './index.css'
import { router } from './app/router'
import { AuthProvider } from './context/AuthContext'
import { bootstrapReports } from './data/reports'
import { bootstrapEvents } from './data/events'
import { bootstrapTeam } from './data/team'
import { bootstrapRadar } from './content/radar'
import { bootstrapRadarPages } from './content/radarCategories'
import { bootstrapBanners } from './data/banners'
import { bootstrapPlans } from './data/plans'
import { bootstrapRisks } from './data/risks'
import { bootstrapMarket } from './data/market'
import { bootstrapFactoryReports } from './content/factoryReports'
import { bootstrapIntegrations } from './content/integrations'
import { bootstrapAbout } from './data/about'
import { bootstrapMedia } from './data/media'
await Promise.all([
bootstrapReports(), bootstrapEvents(), bootstrapTeam(), bootstrapRadar(), bootstrapRadarPages(), bootstrapBanners(),
bootstrapPlans(), bootstrapRisks(), bootstrapMarket(),
bootstrapFactoryReports(), bootstrapIntegrations(), bootstrapAbout(), bootstrapMedia(),
])
createRoot(document.getElementById('root')!).render(
<StrictMode>
<AuthProvider>
<RouterProvider router={router} />
</AuthProvider>
</StrictMode>,
)