diff --git a/src/components/Main.js b/src/components/Main.js index c24e23edac03b8694ecc5c619229620dadcd5769..c9e2b88152578a1ce7022ef87613e96c45049505 100644 --- a/src/components/Main.js +++ b/src/components/Main.js @@ -10,6 +10,9 @@ import Statistics from './pages/Statistics'; import Groups from './pages/Groups'; import News from './pages/News'; import Homework from './pages/Homework'; +import Applications from './pages/Applications'; +import EventDetail from './pages/EventDetail'; +import ApplicantProfile from './pages/ApplicantProfile'; const Main = () => ( <Switch> @@ -22,6 +25,9 @@ const Main = () => ( <Route path='/statistics' component={Statistics} /> <Route path='/groups' component={Groups} /> <Route path='/homework' component={Homework} /> + <Route path='/events/:id' component={EventDetail} /> + <Route path='/applications' component={Applications} /> + <Route path='/applicant/:id' component={ApplicantProfile} /> <Route component={NotFound} /> </Switch> ); diff --git a/src/reducers/index.js b/src/reducers/index.js index fe6ac120eb4a28d66616fff303c7528a5be5e1a0..777e68690c35bde1b8e10c662bf4092a371c9424 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -12,6 +12,9 @@ const rootReducer = combineReducers({ news: NewsReducer, newNews: AddNewsReducer, selectedNews: EditNewsReducer, + events: EventReducer, + trainees: TraineeReducer, + notes: NoteReducer, homeworks: HomeworksReducer, newTask: AddTaskReducer, newSolution: AddSolutionReducer,