fix first lesson problem

This commit is contained in:
Primakov Alexandr Alexandrovich 2025-03-12 17:22:06 +03:00
parent a4447e978a
commit 994311c222
2 changed files with 6 additions and 6 deletions

View File

@ -152,7 +152,7 @@ export const CoursesList = () => {
return ( return (
<> <>
<div id="dots" ref={serviceMenuContainerRef}></div> <div style={{ position: 'absolute', top: 6, left: 6 }} id="dots" ref={serviceMenuContainerRef}></div>
<Container maxW="container.xl"> <Container maxW="container.xl">
{isTeacher(user) && ( {isTeacher(user) && (
<Box mt="15" mb="15"> <Box mt="15" mb="15">

View File

@ -1,9 +1,9 @@
import React, { useEffect, useState, useRef, useMemo } from 'react' import React, { useEffect, useRef, useMemo } from 'react'
import { useParams, Link } from 'react-router-dom' import { useParams, Link } from 'react-router-dom'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import QRCode from 'qrcode' import QRCode from 'qrcode'
import { sha256 } from 'js-sha256' import { sha256 } from 'js-sha256'
import { getConfigValue, getNavigationsValue } from '@brojs/cli' import { getConfigValue, getNavigationValue } from '@brojs/cli'
import { import {
Box, Box,
Breadcrumb, Breadcrumb,
@ -90,7 +90,7 @@ const LessonDetail = () => {
...(accessCode?.body.lesson.students || []), ...(accessCode?.body.lesson.students || []),
] ]
while (allStudents.length && presentStudents.length) { while (presentStudents.length) {
const student = presentStudents.pop() const student = presentStudents.pop()
const present = allStudents.find((st) => st.sub === student.sub) const present = allStudents.find((st) => st.sub === student.sub)
@ -110,7 +110,7 @@ const LessonDetail = () => {
<BreadcrumbsWrapper> <BreadcrumbsWrapper>
<Breadcrumb> <Breadcrumb>
<BreadcrumbItem> <BreadcrumbItem>
<BreadcrumbLink as={Link} to={getNavigationsValue('journal.main')}> <BreadcrumbLink as={Link} to={getNavigationValue('journal.main')}>
Журнал Журнал
</BreadcrumbLink> </BreadcrumbLink>
</BreadcrumbItem> </BreadcrumbItem>
@ -118,7 +118,7 @@ const LessonDetail = () => {
<BreadcrumbItem> <BreadcrumbItem>
<BreadcrumbLink <BreadcrumbLink
as={Link} as={Link}
to={`${getNavigationsValue('journal.main')}/lessons-list/${courseId}`} to={`${getNavigationValue('journal.main')}/lessons-list/${courseId}`}
> >
Курс Курс
</BreadcrumbLink> </BreadcrumbLink>