35 lines
852 B
TypeScript
35 lines
852 B
TypeScript
import { Routes, Route } from 'react-router-dom';
|
|
import Navbar from './components/Navbar';
|
|
import LandingPage from './pages/LandingPage';
|
|
import LoginPage from './pages/LoginPage';
|
|
import RegisterPage from './pages/RegisterPage';
|
|
import DashboardPage from './pages/DashboardPage';
|
|
|
|
function App() {
|
|
return (
|
|
<>
|
|
<Routes>
|
|
<Route
|
|
path="/dashboard"
|
|
element={<DashboardPage />}
|
|
/>
|
|
<Route
|
|
path="*"
|
|
element={
|
|
<>
|
|
<Navbar />
|
|
<Routes>
|
|
<Route path="/" element={<LandingPage />} />
|
|
<Route path="/login" element={<LoginPage />} />
|
|
<Route path="/register" element={<RegisterPage />} />
|
|
</Routes>
|
|
</>
|
|
}
|
|
/>
|
|
</Routes>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default App;
|