From 072a3661ec3c2249c6987d6217bb77b54ba15937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chif=20Gerg=C5=91?= <chifgeri97@gmail.com> Date: Thu, 24 Jan 2019 14:24:53 +0100 Subject: [PATCH] Resolve more errors --- src/components/Main.js | 6 ++++++ src/reducers/index.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/components/Main.js b/src/components/Main.js index c24e23e..c9e2b88 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 fe6ac12..777e686 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, -- GitLab