aboutsummaryrefslogtreecommitdiff
path: root/src/main.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-05-26 10:48:43 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-05-26 10:48:43 +0200
commit5ced7f916d94e86e9a7ec164bee56f9a8e3a2a3a (patch)
treeb1ef5afa17b4a2f9fb2cbd683afc2fb6d905b5e1 /src/main.tsx
parent4637373b50636e78dc2c7b6f99be879edb4ff7dc (diff)
Replace Azure SWA with custom server
Diffstat (limited to 'src/main.tsx')
-rw-r--r--src/main.tsx43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/main.tsx b/src/main.tsx
deleted file mode 100644
index c7a4db9..0000000
--- a/src/main.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import '@fontsource-variable/outfit'
-import './styles/Pages.css'
-
-import { createRoot } from 'react-dom/client'
-import { createBrowserRouter, Navigate, RouterProvider } from 'react-router'
-import { StopList } from './pages/StopList.tsx'
-import { Estimates } from './pages/Estimates.tsx'
-import { StopMap } from './pages/Map.tsx'
-import { Layout } from './Layout.tsx'
-import { Settings } from './pages/Settings.tsx'
-import { AppProvider } from './AppContext.tsx'
-import ErrorBoundary from './ErrorBoundary'
-
-const router = createBrowserRouter([
- {
- path: '/',
- element: <Layout><Navigate to="/stops" /></Layout>,
- },
- {
- path: '/stops',
- element: <Layout><StopList /></Layout>,
- },
- {
- path: '/map',
- element: <Layout><StopMap /></Layout>,
- },
- {
- path: '/estimates/:stopId',
- element: <Layout><Estimates /></Layout>
- },
- {
- path: '/settings',
- element: <Layout><Settings /></Layout>
- }
-])
-
-createRoot(document.getElementById('root')!).render(
- <ErrorBoundary>
- <AppProvider>
- <RouterProvider router={router} />
- </AppProvider>
- </ErrorBoundary>
-)