Skip to content

Commit

Permalink
Create /lessonstemp route as the temporary root lessons landing page …
Browse files Browse the repository at this point in the history
…using the LessonsRootPage component
  • Loading branch information
LianaHarris360 committed Oct 9, 2024
1 parent e2044f7 commit 604986b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ export default [
titleParts: ['lessonsLabel', 'CLASS_NAME'],
},
},
{
name: LessonsPageNames.PLAN_LESSONS_ROOT_BETTER,
path: '/:classId/plan/lessonstemp',
component: LessonsRootPage,
handler(toRoute, fromRoute, next) {
if (classIdParamRequiredGuard(toRoute, PageNames.PLAN_PAGE, next)) {
return;
}
showLessonsRootPage(store, toRoute.params.classId);
},
meta: {
titleParts: ['lessonsLabel', 'CLASS_NAME'],
},
},
{
name: LessonsPageNames.LESSON_CREATION_ROOT,
path: path(CLASS, ALL_LESSONS, '/new'),
Expand Down

0 comments on commit 604986b

Please sign in to comment.