no attendance link if no nav element

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-11-06 12:59:24 +03:00
parent e56f0e4e5d
commit 22a9199d9d

View File

@ -57,7 +57,12 @@ export const CourseCard = ({ course }: { course: Course }) => {
<CourseDetails populatedCourse={populatedCourse.data} />
)}
<Tooltip label="На страницу с лекциями" fontSize="12px" top="16px">
{getNavigationsValue('link.journal.attendance') && (
<Tooltip
label="На страницу с лекциями"
fontSize="12px"
top="16px"
>
<Button
leftIcon={<LinkIcon />}
as={ConnectedLink}
@ -72,6 +77,7 @@ export const CourseCard = ({ course }: { course: Course }) => {
Посещаемость
</Button>
</Tooltip>
)}
</Stack>
</CardBody>
)}