Added pre-travel screen; added country polygons for maps
This commit is contained in:
+5
-2
@@ -1,8 +1,9 @@
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import Sidebar from './components/Sidebar.jsx'
|
||||
import Dashboard from './components/Dashboard.jsx'
|
||||
import LiveTracking from './components/LiveTracking.jsx'
|
||||
|
||||
import Trips from './components/Trips.jsx'
|
||||
import PreTravel from './components/PreTravel.jsx'
|
||||
/**
|
||||
* App — root layout component.
|
||||
* Implements a two-panel CSS Grid: fixed sidebar + scrollable main viewport.
|
||||
@@ -14,6 +15,8 @@ export default function App() {
|
||||
function renderPage() {
|
||||
switch (activePage) {
|
||||
case 'live-tracking': return <LiveTracking />
|
||||
case 'trips': return <Trips />
|
||||
case 'pre-travel': return <PreTravel />
|
||||
default: return <Dashboard />
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user