Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saa00123 committed Sep 5, 2023
1 parent 4784848 commit 416aa44
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions front/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,25 @@ import Question2 from "./pages/agora/Question2";
axios.defaults.baseURL = process.env.REACT_APP_BASE_URL;
axios.defaults.withCredentials = true;

function AppRoutes() {
return (
<Routes>
<Route path='/Login' element={<Login />} />
<Route path='/TeamList' element={<TeamList />} />
<Route path='/DashBoard' element={<DashBoard />} />
<Route path='/Project' element={<Project />} />
<Route path='/Sprint' element={<Sprint />} />
<Route path='/Task' element={<Task />} />
<Route path='/Members' element={<Members />} />
<Route path='/Graph' element={<Graph />} />
<Route path='/Agora' element={<Agora />} />
<Route path='/Question' element={<Question />} />
<Route path='/Question1' element={<Question1 />} />
<Route path='/Question2' element={<Question2 />} />
<Route path='/' element={<WelcomePage />} />
</Routes>
);
}

function App() {
return (
<UserProvider>
<BrowserRouter>
<AppRoutes />
</BrowserRouter>
</UserProvider>
<BrowserRouter>
<Routes>
<Route path='/Login' element={<Login />} />
<Route path='/TeamList' element={<TeamList />} />
<Route path='/DashBoard' element={<DashBoard />} />
<Route path='/Project' element={<Project />} />
<Route path='/Sprint' element={<Sprint />} />
<Route path='/Task' element={<Task />} />
<Route path='/Members' element={<Members />} />
<Route path='/Graph' element={<Graph />} />
<Route path='/Agora' element={<Agora />} />
<Route path='/Question' element={<Question />} />
<Route path='/Question1' element={<Question1 />} />
<Route path='/Question2' element={<Question2 />} />
<Route path='/' element={<WelcomePage />} />
</Routes>
</BrowserRouter>
);
}

Expand Down

0 comments on commit 416aa44

Please sign in to comment.