diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index b43ce25..4b2f35c 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -16,6 +16,7 @@ import { Tag, Stack, ImageProps, + Link, LinkBox, LinkOverlay, LinkBoxProps, @@ -41,7 +42,6 @@ import { useState } from 'react'; import { useColorModeValue } from '@chakra-ui/react'; import { useRootStore } from '@educt/hooks/useRootStore'; import { CourseServiceInstance } from '@educt/services'; -import { EditButton } from '@educt/components/Buttons'; export const CourseHeader: React.FC = props => ( @@ -63,10 +63,10 @@ export const CourseHeading: React.FC = props => { {title} - + {teacher.fullname} -  •  - + +  •  {category.title} diff --git a/src/routes.config.ts b/src/routes.config.ts index da631c7..fda927a 100644 --- a/src/routes.config.ts +++ b/src/routes.config.ts @@ -125,6 +125,7 @@ export const routes: IRouteOption[] = [ title: 'Users management', component: UsersPage, isPrivate: true, + exact: true, roles: [UserRoleEnum.ADMIN, UserRoleEnum.TEACHER], }, {