From a773884b8a95b08de4fa04ca6fd1739cef1e3417 Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Tue, 1 Mar 2022 22:30:00 +0300 Subject: [PATCH] feat: added link to teacher profile page --- src/pages/course/index.tsx | 8 ++++---- src/routes.config.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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], }, {