ALIVE! make it work and navigation now dynamic
This commit is contained in:
@@ -14,7 +14,7 @@ export function Day({ day }: {
|
||||
'Пятница',
|
||||
'Суббота',
|
||||
'Воскресенье'
|
||||
][day.date.getDay()-1]
|
||||
][(day.date.getDay() + 6) % 7]
|
||||
|
||||
const longNames = day.lessons
|
||||
.some(lesson => 'subject' in lesson && lesson.subject.length > 20)
|
||||
|
||||
@@ -86,6 +86,11 @@ export function Lesson({ lesson, width = 350 }: {
|
||||
{lesson.time.start} - {lesson.time.end}{
|
||||
}{lesson.time.hint && <span className='font-bold'> ({lesson.time.hint})</span>}
|
||||
</CardDescription>
|
||||
{hasTeacher && lesson.teacher && (
|
||||
<CardDescription className='text-sm font-medium'>
|
||||
{lesson.teacher}
|
||||
</CardDescription>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
|
||||
Reference in New Issue
Block a user