You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
598 B
25 lines
598 B
import { AuthForm } from './Components/AuthForm'; |
|
import { Dashboard } from './Components/Dashboard'; |
|
import { Routes, Route } from 'react-router-dom'; |
|
import { PrivateRoute } from './Components/PrivateRoute'; |
|
import { AppProvider } from './Contexts/AppContext'; |
|
|
|
function App() { |
|
return ( |
|
<Routes> |
|
<Route |
|
path="/" |
|
element={ |
|
<PrivateRoute> |
|
<AppProvider> |
|
<Dashboard /> |
|
</AppProvider> |
|
</PrivateRoute> |
|
} |
|
/> |
|
<Route path="/auth" element={<AuthForm />} /> |
|
</Routes> |
|
); |
|
} |
|
|
|
export default App;
|
|
|