2025-09-05 18:27:12 -04:00
|
|
|
/**
|
|
|
|
|
* App.tsx
|
|
|
|
|
* Root component for the conference room booking frontend.
|
|
|
|
|
* Sets up routing for landing, booking, and confirmation pages.
|
|
|
|
|
*
|
|
|
|
|
* Author: Cliff Hill
|
|
|
|
|
* Last updated: 2025-09-05
|
|
|
|
|
*/
|
2025-08-29 10:12:41 -04:00
|
|
|
import { logger } from "./utils/logger";
|
2025-08-27 16:10:45 -04:00
|
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
2025-08-28 21:47:10 -04:00
|
|
|
|
2025-08-27 16:10:45 -04:00
|
|
|
import LandingPage from "./pages/LandingPage";
|
2025-08-28 21:47:10 -04:00
|
|
|
import BookingPage from "./pages/BookingPage";
|
2025-09-03 14:47:54 -04:00
|
|
|
import ConfirmationPage from "./pages/ConfirmationPage";
|
2025-08-20 21:04:37 -04:00
|
|
|
|
2025-08-27 16:10:45 -04:00
|
|
|
const App: React.FC = () => {
|
2025-08-29 10:12:41 -04:00
|
|
|
// Log when App mounts
|
|
|
|
|
logger.info("[App] Mounted");
|
2025-08-20 21:04:37 -04:00
|
|
|
return (
|
2025-08-27 16:10:45 -04:00
|
|
|
<Router>
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<LandingPage />} />
|
2025-08-28 21:47:10 -04:00
|
|
|
<Route path="/booking" element={<BookingPage />} />
|
2025-09-03 14:47:54 -04:00
|
|
|
<Route path="/confirmation" element={<ConfirmationPage />} />
|
2025-08-27 16:10:45 -04:00
|
|
|
</Routes>
|
|
|
|
|
</Router>
|
2025-08-20 21:04:37 -04:00
|
|
|
);
|
2025-08-27 16:10:45 -04:00
|
|
|
};
|
2025-08-20 21:04:37 -04:00
|
|
|
|
|
|
|
|
export default App;
|