mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 10:19:22 +03:00
deleted lessons page
This commit is contained in:
parent
c3fa9070f1
commit
11ded36fc8
@ -27,13 +27,6 @@ const config: IAppConfig = {
|
|||||||
links: [
|
links: [
|
||||||
{ location: '/', title: 'Main', public: true, icon: MdOutlineHome },
|
{ location: '/', title: 'Main', public: true, icon: MdOutlineHome },
|
||||||
{ location: '/courses', title: 'Courses', public: true, icon: MdOutlineCollectionsBookmark },
|
{ location: '/courses', title: 'Courses', public: true, icon: MdOutlineCollectionsBookmark },
|
||||||
{
|
|
||||||
location: '/lessons',
|
|
||||||
title: 'Lessons',
|
|
||||||
public: false,
|
|
||||||
icon: MdOutlineVideoLibrary,
|
|
||||||
roles: [UserRoleEnum.ADMIN, UserRoleEnum.TEACHER],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
location: '/categories',
|
location: '/categories',
|
||||||
title: 'Categories',
|
title: 'Categories',
|
||||||
|
|||||||
@ -16,7 +16,6 @@ import ChangePasswordPage from '@educt/pages/profile/change-password/change-pass
|
|||||||
import ChangeEmailPage from '@educt/pages/profile/change-email/change-email';
|
import ChangeEmailPage from '@educt/pages/profile/change-email/change-email';
|
||||||
import { UserRoleEnum } from './enums';
|
import { UserRoleEnum } from './enums';
|
||||||
const CoursesPage = lazy(() => import('@educt/pages/courses/courses'));
|
const CoursesPage = lazy(() => import('@educt/pages/courses/courses'));
|
||||||
const LessonsPage = lazy(() => import('@educt/pages/lessons/lessons'));
|
|
||||||
const LessonPage = lazy(() => import('@educt/pages/lesson/lesson'));
|
const LessonPage = lazy(() => import('@educt/pages/lesson/lesson'));
|
||||||
const MainPage = lazy(() => import('@educt/pages/main/main'));
|
const MainPage = lazy(() => import('@educt/pages/main/main'));
|
||||||
const MessagesPage = lazy(() => import('@educt/pages/messages/messages'));
|
const MessagesPage = lazy(() => import('@educt/pages/messages/messages'));
|
||||||
@ -80,14 +79,6 @@ export const routes: IRouteOption[] = [
|
|||||||
exact: true,
|
exact: true,
|
||||||
roles: [UserRoleEnum.ADMIN, UserRoleEnum.TEACHER],
|
roles: [UserRoleEnum.ADMIN, UserRoleEnum.TEACHER],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/lessons',
|
|
||||||
title: 'Lessons',
|
|
||||||
component: LessonsPage,
|
|
||||||
isPrivate: true,
|
|
||||||
exact: true,
|
|
||||||
roles: [UserRoleEnum.ADMIN, UserRoleEnum.TEACHER],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/lessons/edit/:id',
|
path: '/lessons/edit/:id',
|
||||||
title: 'Edit Lesson',
|
title: 'Edit Lesson',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user