mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-09 09:19:48 -04:00
31 lines
834 B
TypeScript
31 lines
834 B
TypeScript
/**
|
|
* 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
|
|
*/
|
|
import { logger } from "./utils/logger";
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
|
|
|
import LandingPage from "./pages/LandingPage";
|
|
import BookingPage from "./pages/BookingPage";
|
|
import ConfirmationPage from "./pages/ConfirmationPage";
|
|
|
|
const App: React.FC = () => {
|
|
// Log when App mounts
|
|
logger.info("[App] Mounted");
|
|
return (
|
|
<Router>
|
|
<Routes>
|
|
<Route path="/" element={<LandingPage />} />
|
|
<Route path="/booking" element={<BookingPage />} />
|
|
<Route path="/confirmation" element={<ConfirmationPage />} />
|
|
</Routes>
|
|
</Router>
|
|
);
|
|
};
|
|
|
|
export default App;
|