|
1 | 1 | import './App.css'; |
2 | | -import { Routes, Route } from "react-router-dom"; |
3 | | -import Dashboard from "pages/dashboard"; |
4 | | -import Login from "pages/login"; |
5 | | -import Register from "pages/register"; |
6 | | -import Home from "pages/home"; |
7 | | -import ForgotPassword from "pages/forgot-password"; |
8 | | -import PasswordReset from "pages/password-reset"; |
9 | | -import NotFoundPage from "pages/404"; |
| 2 | +import { Routes, Route } from 'react-router-dom'; |
| 3 | +import Dashboard from 'pages/dashboard'; |
| 4 | +import Login from 'pages/login'; |
| 5 | +import Register from 'pages/register'; |
| 6 | +import Home from 'pages/home'; |
| 7 | +import ForgotPassword from 'pages/forgot-password'; |
| 8 | +import PasswordReset from 'pages/password-reset'; |
| 9 | +import NotFoundPage from 'pages/404'; |
10 | 10 |
|
11 | 11 | function App() { |
12 | | - return ( |
13 | | - <div className="antialiased"> |
14 | | - <Routes> |
15 | | - <Route path="/" element={<Home />} /> |
16 | | - <Route path="/login" element={<Login />} /> |
17 | | - <Route path="/register" element={<Register />} /> |
18 | | - <Route path="/forgot-password" element={<ForgotPassword />} /> |
19 | | - <Route path="/password-reset/:token" element={<PasswordReset />} /> |
20 | | - <Route path="/dashboard" element={<Dashboard />} /> |
21 | | - <Route path="*" element={<NotFoundPage/>} |
22 | | - /> |
23 | | - </Routes> |
24 | | - </div> |
25 | | - ); |
| 12 | + return ( |
| 13 | + <div className="antialiased"> |
| 14 | + <Routes> |
| 15 | + <Route path="/" element={<Home />} /> |
| 16 | + <Route path="/login" element={<Login />} /> |
| 17 | + <Route path="/register" element={<Register />} /> |
| 18 | + <Route path="/forgot-password" element={<ForgotPassword />} /> |
| 19 | + <Route path="/password-reset/:token" element={<PasswordReset />} /> |
| 20 | + <Route path="/dashboard" element={<Dashboard />} /> |
| 21 | + <Route path="*" element={<NotFoundPage/>} |
| 22 | + /> |
| 23 | + </Routes> |
| 24 | + </div> |
| 25 | + ); |
26 | 26 | } |
27 | 27 |
|
28 | 28 | export default App; |
0 commit comments