diff options
author | Leonardo Murça <106257713+leomurca@users.noreply.github.com> | 2023-02-07 20:40:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 20:40:41 -0300 |
commit | 8eca8b79ce4bfc40f8416309cbcfe397ed935ec4 (patch) | |
tree | ca4152122b67605e76f7a53ed1a14402255b23aa /src/app/StudentRoutes.js | |
parent | e3de3c8e5fe06f7d14b2dc99a8b6aadc3b9bf18a (diff) | |
parent | c1f1286c86a47b87abcca55cbd0177d2a9c92fcd (diff) |
Feature/professor classroom
Diffstat (limited to 'src/app/StudentRoutes.js')
-rw-r--r-- | src/app/StudentRoutes.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/app/StudentRoutes.js b/src/app/StudentRoutes.js new file mode 100644 index 0000000..1dc6b4a --- /dev/null +++ b/src/app/StudentRoutes.js @@ -0,0 +1,31 @@ +import { Navigate, Route, Routes } from 'react-router-dom'; + +import Home from '../screens/student/Home'; +import Classroom from '../screens/student/Classroom'; + +import Information from '../screens/Information'; +import Calendar from '../screens/Calendar'; +import Assignment from '../screens/Assignment'; +import Profile from '../screens/Profile'; + +function StudentRoutes() { + return ( + <Routes> + <Route path="/home" element={<Home />} /> + <Route path="/info" element={<Information />} /> + <Route path="/calendar" element={<Calendar />} /> + <Route path="/profile" element={<Profile />} /> + <Route path="/class"> + <Route path=":id" element={<Classroom />} /> + </Route> + <Route path="/assignment"> + <Route path=":id" element={<Assignment />} /> + </Route> + <Route path="/login" element={<Navigate to="/home" />} /> + <Route path="/register" element={<Navigate to="/home" />} /> + <Route path="/" element={<Navigate to="/home" />} /> + </Routes> + ); +} + +export default StudentRoutes; |